submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s656001346 | p03826 | C++ | #include<iostream>
using namespace std;
int main()
{
int A,B,C,D,ar1=0,ar2=0:
cin>>A>>B>>C>>D;
ar1=A*B; ar2=C*D;
if(ar1>ar2)
cout<<ar1;
else if(ar2>ar1)
cout<<ar2;
else
cout<<"Equal & = "<<ar1;
return(0);
} | a.cc: In function 'int main()':
a.cc:7:33: error: expected ',' or ';' before ':' token
7 | int A,B,C,D,ar1=0,ar2=0:
| ^
|
s193273210 | p03826 | C | #include<stdio.h>
#include<conio.h>
int main() {
int A,B,C,D,E,F;
printf ("Enter value of %d %d %d %d",A,B,C,D);
scanf ( "%d%d%d%d",&A,&B,&C,&D);
E=A*B;
F=C*D;
if (E>=F)
printf ("%d",E);
else
printf ("%d",F);
}
| main.c:2:9: fatal error: conio.h: No such file or directory
2 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s154973359 | p03826 | C++ | #include<iostream>
using namespace std;
int main()
{
int A,B,C,D,ar1=0,ar2=0:
cin>>A>>B>>C>>D;
ar1=A*B; ar2=C*D;
if(ar1>ar2)
cout<<ar1;
else if(ar2>ar1)
cout<<ar2;
else
cout<<"Equal & = "<<ar1;
return(0);
} | a.cc: In function 'int main()':
a.cc:7:33: error: expected ',' or ';' before ':' token
7 | int A,B,C,D,ar1=0,ar2=0:
| ^
|
s115616899 | p03826 | C++ | #include<iostream>
int main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if((A*B)>(C*D))
cout<<(A*B);
else
cout<<(C*D);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout<<(A*B);
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout<<(C*D);
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s556999561 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class NAIN{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:5: error: class NAIN is public, should be declared in a file named NAIN.java
public class NAIN{
^
1 error
|
s247265848 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class Nain{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:5: error: class Nain is public, should be declared in a file named Nain.java
public class Nain{
^
1 error
|
s739061861 | p03826 | C++ | #include<iostream>
int main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if(A*B>C*D)
cout<<(A*B);
else
cout<<(C*D);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout<<(A*B);
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout<<(C*D);
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s711220141 | p03826 | C++ | #include<iostream>
void main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout<<A*B;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout<<C*D;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s548110672 | p03826 | C++ | #include<iostream>
int main()
{
int A,B,C,D;
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A>>B>>C>>D;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<A*B;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<C*D;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s680370840 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class area{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:5: error: class area is public, should be declared in a file named area.java
public class area{
^
1 error
|
s588461928 | p03826 | C++ | #include<iostream>
void main()
{
int A,B,C,D;
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>A>>B>>C>>D;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<A*B;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout<<C*D;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|
s654782584 | p03826 | C++ | #include<iostream.h>
void main()
{
int A,B,C,D;
cout<<"Enter A,B,C,D respectively \n";
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
} | a.cc:1:9: fatal error: iostream.h: No such file or directory
1 | #include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s452469368 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class area{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:6: error: class area is public, should be declared in a file named area.java
public class area{
^
1 error
|
s175083928 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class area{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:6: error: class area is public, should be declared in a file named area.java
public class area{
^
1 error
|
s050676592 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class file.java{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:6: error: '{' expected
public class file.java{
^
1 error
|
s813955825 | p03826 | Java | import java.io.*;
import java.util.*;
import java.lang.*;
public class file{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());
int area=a*b;
int area1=c*d;
if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);
}} | Main.java:6: error: class file is public, should be declared in a file named file.java
public class file{
^
1 error
|
s212276265 | p03826 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
if(a*b>==c*d){
System.out.println(a*b);
}else{
System.out.println(c*d);
}
}
} | Main.java:10: error: illegal start of expression
if(a*b>==c*d){
^
1 error
|
s018646347 | p03826 | C++ | #include <iosream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if(a * b > c * d) {
cout << a * b << endl;
} else {
cout << c * d << endl;
}
} | a.cc:1:10: fatal error: iosream: No such file or directory
1 | #include <iosream>
| ^~~~~~~~~
compilation terminated.
|
s427122847 | p03826 | C++ | #include <stdio.h>
int main(void){
int a;
int b;
int c;
int d;
int menseki1;
int menseki2;
scanf("%d%d%d%d",&a,&b,&c,&d);
menseki1 = a*b;
menseki2 = c*d;
if(menseki1>menseki2){
printf("%d",menseki1);
}else if(menseki1 == menseki2){
printf("%d",menseki1);
}else(menseki2>menseki1){
printf("%d",menseki2);
}
} | a.cc: In function 'int main()':
a.cc:20:25: error: expected ';' before '{' token
20 | }else(menseki2>menseki1){
| ^
| ;
|
s218417631 | p03826 | C++ | #include <stdio.h>
int main(void){
int a;
int b;
int c;
int d;
int menseki1;
int menseki2;
scanf("%d%d%d%d",&a,&b,&c,&d);
menseki1 = a*b;
menseki2 = c*d;
if(meseki1>menseki2){
printf("%d",menseki1);
}else if(menseki1 == menseki2){
printf("%d",menseki1);
}else(menseki2>menseki1){
printf("%d",menseki2);
}
} | a.cc: In function 'int main()':
a.cc:16:4: error: 'meseki1' was not declared in this scope; did you mean 'menseki1'?
16 | if(meseki1>menseki2){
| ^~~~~~~
| menseki1
a.cc:20:25: error: expected ';' before '{' token
20 | }else(menseki2>menseki1){
| ^
| ;
|
s175196391 | p03826 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
System.out.println(a * b >= c * d ? a * b ? c * d);
}
}
| Main.java:10: error: : expected
System.out.println(a * b >= c * d ? a * b ? c * d);
^
1 error
|
s986466187 | p03826 | Java | public class Main {
public static void main(String[] args) {
// TODO code application logic here
//AtCoder Beginner Contest 052
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next());
int d = Integer.parseInt(sc.next());
int x = a*b;
int y = c*d;
if(x < y)System.out.println(y);
else if (x > y ) System.out.println(x);
else System.out.println(x);
}
} | Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s582044887 | p03826 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int ab = a*b;
int cd = c*d;
if(ab > cd){
System.out.println(ab);
}else if(ab == cd){
System.out.println(ab);
}else if(ab < cd){
System.out.println(cd);
}
}
} | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s138776758 | p03826 | C | #include <iostream>
using namespace std;
int main(){
int a,b,c,d,A,B;
cin>>a>>b>>c>>d;
A=a*b;
B=c*d;
if(A>B)cout<<A;
else cout<<B;
return 0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s871656518 | p03826 | C++ | #include <iostream>
using namespace std;
main(){
int q,w,e,r;
if(q*w>=e*r){
cout << q*w<<endl;
}else{
cout << e:r <<endl;
}
} | a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:9:10: error: found ':' in nested-name-specifier, expected '::'
9 | cout << e:r <<endl;
| ^
| ::
a.cc:9:9: error: 'e' is not a class, namespace, or enumeration
9 | cout << e:r <<endl;
| ^
|
s444743569 | p03826 | C | include <stdio.h>
int main(void) {
int A,B,C,D;
scanf("%d%d%d%d",&A,&B,&C,&D);
if(A*B>=C*D){
printf("%d",A*B);
}
else{
printf("%d",C*D);
}
return 0;
}
| main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s395546960 | p03826 | Java | import java.util.*;
public class TwoRectangles {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int s1 = a * b;
int s2 = c * d;
if (s1 >= s2) {
System.out.println(s1);
} else {
System.out.println(s2);
}
}
} | Main.java:3: error: class TwoRectangles is public, should be declared in a file named TwoRectangles.java
public class TwoRectangles {
^
1 error
|
s401064323 | p03826 | C++ | A, B, C, D = map(int, raw_input().split())
print max(A*B, C*D) | a.cc:1:1: error: 'A' does not name a type
1 | A, B, C, D = map(int, raw_input().split())
| ^
|
s661694020 | p03826 | C++ | #include <iostream>
using namespace std;
int main() {
int A,B,C,D;
cin>>A >> B >> C >> D;
int x=A*B;
int y=C*D;
if(x>=y;){cout<<x<<endl;}
else {cout<<y<<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before ')' token
9 | if(x>=y;){cout<<x<<endl;}
| ^
|
s685290135 | p03826 | C++ | #include <iostream>
using namespace std;
int main() {
int A,B,C,D;
cin>>A >> B >> C >> D;
int x=A*B;
int y=C*D;
if(x>=y;){cout<<x<<endl;}
else {cout<<y<<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before ')' token
9 | if(x>=y;){cout<<x<<endl;}
| ^
|
s602636147 | p03826 | C++ | #include <iostream>
using namespace std;
int main() {
int A,B,C,D;
cin>>A >> B >> C >> D;
int x=A*B;
int y=C*D;
bool zyoukena=x>=y;
bool zyoukenb=x<y;
if(zyoukena){cout<<x<<endl;}
else (zyoukenb){cout<<y<<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '{' token
12 | else (zyoukenb){cout<<y<<endl;}
| ^
| ;
|
s181734264 | p03826 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <numeric>
#include <cmath>
using namespace std;
typedef long long int lld;
const lld mod = 1e9+7;
const lld INF = 1e9;
//const lld MAXN = 1e9;
int main()
{
lld a,b,c,d;
cin >> a >> b >> c >> d;
if (a*b > c*d)
{
cout << a*b << endl;
}else
{
cout << c*d
<< endl }
return 0;
} | a.cc: In function 'int main()':
a.cc:30:16: error: expected ';' before '}' token
30 | << endl }
| ^~~~~~~~~
| ;
|
s313051741 | p03826 | C++ | #include <stdio.h>
void bigarea(int A, int B, int C, int D)
{
int ans = A*B;
int ans2 = C*D;
if (ans == ans2)
{
printf("%d\n", ans);
}
else if (ans < ans2)
{
printf("%d\n", ans2);
}
else
{
printf("%d\n",ans)
}
}
int main(void)
{
int A;
int B;
int C;
int D;
scanf("%d %d %d %d", &A, &B, &C, &D);
bigarea(A, B, C, D);
return 0;
} | a.cc: In function 'void bigarea(int, int, int, int)':
a.cc:18:35: error: expected ';' before '}' token
18 | printf("%d\n",ans)
| ^
| ;
19 | }
| ~
|
s778670109 | p03826 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(voic){
int a,b,c,d;
cin>>a>>b>>c>>d;
int ans=a*b;
if(a*b<c*d){
ans=c*d;
}
cout<<ans<<endl;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main(voic){
| ^~~~
a.cc:3:10: error: 'voic' was not declared in this scope; did you mean 'void'?
3 | int main(voic){
| ^~~~
| void
|
s954920006 | p03826 | C++ | #include<bits\stdc++.h>
using namespace std;
int main() {
cin.sync_with_stdio(false);
int A, B, C, D;
cin >> A >> B >> C >> D;
if (A*B <= C*D) {
cout << C*D << endl;
}
else {
cout << A*B << endl;
}
return 0;
} | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s090595444 | p03826 | Java | double a,b,c,d;
system.out.println(``enter value a``);
a=sc.nextDouble();
system.out.println(``enter value b``);
b=sc.nextDouble();
system.out.println(``enter value c``);
c=sc.nextDouble();
system.out.println(``enter value d``);
d=sc.nextDouble();
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
}
if((a*b-c*d)>=0){
system.out.println(a*b)
};else{
system.out.println(c*d)
};
| Main.java:1: error: class, interface, enum, or record expected
double a,b,c,d;
^
Main.java:2: error: class, interface, enum, or record expected
system.out.println(``enter value a``);
^
Main.java:2: error: illegal character: '`'
system.out.println(``enter value a``);
^
Main.java:2: error: illegal character: '`'
system.out.println(``enter value a``);
^
Main.java:2: error: illegal character: '`'
system.out.println(``enter value a``);
^
Main.java:2: error: illegal character: '`'
system.out.println(``enter value a``);
^
Main.java:3: error: class, interface, enum, or record expected
a=sc.nextDouble();
^
Main.java:4: error: class, interface, enum, or record expected
system.out.println(``enter value b``);
^
Main.java:4: error: illegal character: '`'
system.out.println(``enter value b``);
^
Main.java:4: error: illegal character: '`'
system.out.println(``enter value b``);
^
Main.java:4: error: illegal character: '`'
system.out.println(``enter value b``);
^
Main.java:4: error: illegal character: '`'
system.out.println(``enter value b``);
^
Main.java:5: error: class, interface, enum, or record expected
b=sc.nextDouble();
^
Main.java:6: error: class, interface, enum, or record expected
system.out.println(``enter value c``);
^
Main.java:6: error: illegal character: '`'
system.out.println(``enter value c``);
^
Main.java:6: error: illegal character: '`'
system.out.println(``enter value c``);
^
Main.java:6: error: illegal character: '`'
system.out.println(``enter value c``);
^
Main.java:6: error: illegal character: '`'
system.out.println(``enter value c``);
^
Main.java:7: error: class, interface, enum, or record expected
c=sc.nextDouble();
^
Main.java:8: error: class, interface, enum, or record expected
system.out.println(``enter value d``);
^
Main.java:8: error: illegal character: '`'
system.out.println(``enter value d``);
^
Main.java:8: error: illegal character: '`'
system.out.println(``enter value d``);
^
Main.java:8: error: illegal character: '`'
system.out.println(``enter value d``);
^
Main.java:8: error: illegal character: '`'
system.out.println(``enter value d``);
^
Main.java:9: error: class, interface, enum, or record expected
d=sc.nextDouble();
^
Main.java:10: error: class, interface, enum, or record expected
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
^
Main.java:10: error: illegal character: '`'
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
^
Main.java:10: error: illegal character: '`'
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
^
Main.java:10: error: illegal character: '`'
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
^
Main.java:10: error: illegal character: '`'
if((1>a)||(a>10000)||(1>b)||(b>10000)||(1>c)||(c>10000)||(1>d)||(d>10000)){system.out.println(``error``)
^
Main.java:14: error: class, interface, enum, or record expected
};else{
^
31 errors
|
s880574113 | p03826 | C | #include <stdio.h>
int main(void)
{
int a,b,c,d,s1,s2;
scanf("%d%d%d%d",&a,&b,&c,&d);
s1=a*b;
s2=c*d;
if(s1>=s2){
printf("%d",s1);
}
else{
printf("%d",s2);
}
return 0; | main.c: In function 'main':
main.c:19:9: error: expected declaration or statement at end of input
19 | return 0;
| ^~~~~~
|
s482860080 | p03826 | C | #include <stdio.h>
int main(void)
{
int a,b,c,d,s1,s2;
scanf("%d%d%d%d",&a,&b,&c,&d);
s1=a*b;
s2=c*d;
if(s1>=s2){
printf("%d",s1);
}
else{
printf("%d",s2);
}
return 0; | main.c: In function 'main':
main.c:19:9: error: expected declaration or statement at end of input
19 | return 0;
| ^~~~~~
|
s082769628 | p03826 | C++ | #include <bits/stdc++.h>
typedef long long LL;
LL A,B,C,D;
int main()
{
scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
LL ans = max(A*B, C*D);
printf("%lld\n", ans );
} | a.cc: In function 'int main()':
a.cc:7:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
7 | LL ans = max(A*B, C*D);
| ^~~
| std::max
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
|
s015323425 | p03826 | C++ | #include <bits/stdc++.h>
#include <cmath>
typedef long long LL;
LL A,B,C,D;
int main()
{
scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
printf("%lld\n", max(A*B, C*D));
} | a.cc: In function 'int main()':
a.cc:8:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
8 | printf("%lld\n", max(A*B, C*D));
| ^~~
| std::max
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
|
s365598094 | p03826 | C++ | #include <bits/stdc++.h>
typedef long long LL;
LL A,B,C,D;
int main()
{
scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
printf("%lld\n", max(A*B, C*D));
} | a.cc: In function 'int main()':
a.cc:7:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
7 | printf("%lld\n", max(A*B, C*D));
| ^~~
| std::max
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
|
s164612701 | p03826 | C++ | #include <bits/stdc++.h>
LL A,B,C,D;
int main()
{
scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
printf("%lld\n", max(A*B, C*D));
} | a.cc:2:1: error: 'LL' does not name a type
2 | LL A,B,C,D;
| ^~
a.cc: In function 'int main()':
a.cc:5:32: error: 'A' was not declared in this scope
5 | scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
| ^
a.cc:5:36: error: 'B' was not declared in this scope
5 | scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
| ^
a.cc:5:40: error: 'C' was not declared in this scope
5 | scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
| ^
a.cc:5:44: error: 'D' was not declared in this scope
5 | scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
| ^
a.cc:6:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
6 | printf("%lld\n", max(A*B, C*D));
| ^~~
| std::max
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
|
s527944104 | p03826 | Java | import java.util.*;
public class AtCoder04a {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int AB, CD;
AB = A*B;
CD = C*D;
if(AB > CD){
System.out.print(AB);
}
else if(AB < CD){
System.out.print(CD);
}
else{System.out.print(AB);
}
}
}
| Main.java:3: error: class AtCoder04a is public, should be declared in a file named AtCoder04a.java
public class AtCoder04a {
^
1 error
|
s005949476 | p03826 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A =nextInt();
int B =nextInt();
int C =nextInt();
int D =nextInt();
if(A*B<=C*D)System.out.println();
if(C*D<A*B)System.out.println();
}
} | Main.java:5: error: cannot find symbol
int A =nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:6: error: cannot find symbol
int B =nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:7: error: cannot find symbol
int C =nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:8: error: cannot find symbol
int D =nextInt();
^
symbol: method nextInt()
location: class Main
4 errors
|
s276498164 | p03826 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int sqa= A * B
int sqb= C * D
if(sqa > sqb){
System.out.println(sqa);
}
if(sqa < sqb){
System.out.println(sqb);
}
if(sqa = sqb){
System.out.println(sqa);
}
}
} | Main.java:10: error: ';' expected
int sqa= A * B
^
Main.java:11: error: ';' expected
int sqb= C * D
^
2 errors
|
s111727312 | p03826 | C++ | #include<cstdio>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max(a*b,c*d);
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
7 | cin >> a >> b >> c >> d;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<cstdio>
+++ |+#include <iostream>
2 |
a.cc:8:3: error: 'cout' was not declared in this scope
8 | cout << max(a*b,c*d);
| ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:11: error: 'max' was not declared in this scope
8 | cout << max(a*b,c*d);
| ^~~
|
s691529095 | p03826 | C++ | a, b, c, d=gets.split.map &:to_i
puts [a*b, c*d].max | a.cc:1:1: error: 'a' does not name a type
1 | a, b, c, d=gets.split.map &:to_i
| ^
|
s273328823 | p03826 | Java | import java.util.*;
public class A_052 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A=sc.nextInt(), B=sc.nextInt(),
C=sc.nextInt(), D=sc.nextInt();
int s, n;
s = A*B;
n = C*D;
if(s>n){
System.out.println(s);
}
else if(n>s){
System.out.println(n);
}
else{
System.out.println(A*B);
}
}
}
| Main.java:3: error: class A_052 is public, should be declared in a file named A_052.java
public class A_052 {
^
1 error
|
s666559094 | p03826 | C++ | #include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define REP(i,b) FOR(i,0,b)
#define INF 1e9
int main(){
int a,b,c,d;
cin>>s;
if (a*b >= c*d) {
cout<<a*b;
} else {
cout<<c*d;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:8: error: 's' was not declared in this scope
9 | cin>>s;
| ^
|
s428211850 | p03826 | C++ | #include <stdio.h>
int main(){
int a, b, c, d;
int s1, s2;
scanf("%d%d%d%d",&a&b&c&d);
s1 = a*b;
s2 = c*d;
if(s1>s2) printf("%d", s1);
if(s1<=s2) printf("%d", s2);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:20: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
6 | scanf("%d%d%d%d",&a&b&c&d);
| ~~^~
| | |
| | int
| int*
|
s257795704 | p03826 | C++ | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
const int N = 111111;
vector<int> a[N];
int a, b, c, d;
int main()
{
cin >> a >> b >> c >> d;
cout << max(a*b, c*d);
}
| a.cc:7:5: error: conflicting declaration 'int a'
7 | int a, b, c, d;
| ^
a.cc:6:13: note: previous declaration as 'std::vector<int> a [111111]'
6 | vector<int> a[N];
| ^
a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<int> [111111]')
10 | cin >> a >> b >> c >> d;
| ~~~ ^~ ~
| | |
| | std::vector<int> [111111]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
from a.cc:2:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'std::vector<int>*'
10 | cin >> a >> b >> c >> d;
| ^
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'short int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(short int)((std::vector<int>*)(& a))' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'short unsigned int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(short unsigned int)((std::vector<int>*)(& a))' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(int)((std::vector<int>*)(& a))' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'unsigned int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(unsigned int)((std::vector<int>*)(& a))' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'long int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(long int)((std::vector<int>*)(& a))' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'long unsigned int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(long unsigned int)((std::vector<int>*)(& a))' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'long long int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(long long int)((std::vector<int>*)(& a))' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: invalid conversion from 'std::vector<int>*' to 'long long unsigned int' [-fpermissive]
10 | cin >> a >> b >> c >> d;
| ^
| |
| std::vector<int>*
a.cc:10:12: error: cannot bind rvalue '(long long unsigned int)((std::vector<int>*)(& a))' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:10:12: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
10 | cin >> a >> b >> c >> d;
| ^
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::vector<int> [111111]' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::vector<int> [111111]' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::vector<int> [111111]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'std::vector<int> [111111]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_t |
s493577226 | p03826 | C++ | #include "stdafx.h"
#include <string>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
int value = max(a*b, c*d);
cout << value;
int wait;
cin >> wait;
return 0;
} | a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s205080294 | p03826 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
int s = a * b; t = c * d;
cout << (s >= t ? s : t) << endl;
}
| a.cc: In function 'int main()':
a.cc:6:18: error: 't' was not declared in this scope
6 | int s = a * b; t = c * d;
| ^
|
s880554684 | p03826 | Java | import java.util.Scanner;
/**
* Created by User on 2017/02/07.
*/
public class Main {
public static void main(String[] args) {
int[] num = new int[4];
Scanner scn = new Scanner(System.in);
num[0] = scn.nextInt();
num[1] = scn.nextInt();
num[2] = scn.nextInt();
num[3] = scn.nextInt();
System.out.println(num[0] * num[1] > num[2] * num[3] ? num[0] * num[1] : num[2] * num[3]);
}
| Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s378792850 | p03826 | C++ | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int ab = a*b;
int c = sc.nextInt();
int d = sc.nextInt();
int cd = c*d;
System.out.println(String.valueOf((ab > cd) ? ab : cd));
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s131832661 | p03826 | C++ | using System;
class Program
{
static void Main(string[] args)
{
int a,b,c;
a = int.Parse(Console.ReadLine()); //標準入力
string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得
b = int.Parse(str[0]); //数値で受け取りたい場合は変換する
c = int.Parse(str[1]);
d = int.Parse(str[2]);
e = int.Parse(str[3]);
int f=0;
if(b*c>d*e)
f = b*c;
else
f = d*e;
Console.WriteLine(f);//改行付き出力
}
} | a.cc:6:5: error: extended character is not valid in an identifier
6 | int a,b,c;
| ^
a.cc:6:5: error: extended character is not valid in an identifier
a.cc:11:1: error: extended character is not valid in an identifier
11 | d = int.Parse(str[2]);
| ^
a.cc:11:1: error: extended character is not valid in an identifier
a.cc:11:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
18 | Console.WriteLine(f);//改行付き出力
| ^
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:18:1: error: extended character is not valid in an identifier
a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:4:26: error: 'string' has not been declared
4 | static void Main(string[] args)
| ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
4 | static void Main(string[] args)
| ^~~~
a.cc:21:3: error: expected ';' after class definition
21 | }
| ^
| ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:6:5: error: '\U00003000\U00003000int' was not declared in this scope
6 | int a,b,c;
| ^~~~~~~
a.cc:7:13: error: 'a' was not declared in this scope
7 | a = int.Parse(Console.ReadLine()); //標準入力
| ^
a.cc:7:17: error: expected primary-expression before 'int'
7 | a = int.Parse(Console.ReadLine()); //標準入力
| ^~~
a.cc:8:13: error: 'string' was not declared in this scope
8 | string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得
| ^~~~~~
a.cc:8:20: error: expected primary-expression before ']' token
8 | string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得
| ^
a.cc:9:13: error: 'b' was not declared in this scope
9 | b = int.Parse(str[0]); //数値で受け取りたい場合は変換する
| ^
a.cc:9:17: error: expected primary-expression before 'int'
9 | b = int.Parse(str[0]); //数値で受け取りたい場合は変換する
| ^~~
a.cc:10:13: error: 'c' was not declared in this scope
10 | c = int.Parse(str[1]);
| ^
a.cc:10:17: error: expected primary-expression before 'int'
10 | c = int.Parse(str[1]);
| ^~~
a.cc:11:1: error: '\U00003000\U00003000\U00003000d' was not declared in this scope
11 | d = int.Parse(str[2]);
| ^~~~~~~
a.cc:11:11: error: expected primary-expression before 'int'
11 | d = int.Parse(str[2]);
| ^~~
a.cc:12:3: error: 'e' was not declared in this scope
12 | e = int.Parse(str[3]);
| ^
a.cc:12:7: error: expected primary-expression before 'int'
12 | e = int.Parse(str[3]);
| ^~~
a.cc:14:8: error: 'd' was not declared in this scope
14 | if(b*c>d*e)
| ^
a.cc:18:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000Console' was not declared in this scope
18 | Console.WriteLine(f);//改行付き出力
| ^~~~~~~~~~~~~~~~~~~~~
|
s825753773 | p03826 | C++ | a, b, c, d = input().split()
print(max(int(a) * int(b), int(c) * int(d))) | a.cc:1:1: error: 'a' does not name a type
1 | a, b, c, d = input().split()
| ^
|
s238262022 | p03826 | C | #include<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d):
printf("%d\n",MAX(a*b,c*d));
return 0;
}
| main.c:4:9: error: macro names must be identifiers
4 | #define 11 long long
| ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
8 | scanf("%d %d %d %d",&a,&b,&c,&d):
| ^
| ;
|
s044074850 | p03826 | C | #include<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d):
printf("%d\n",MAX(a*b,c*d));
return 0;
} | main.c:4:9: error: macro names must be identifiers
4 | #define 11 long long
| ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
8 | scanf("%d %d %d %d",&a,&b,&c,&d):
| ^
| ;
|
s187185910 | p03826 | C | #include<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d):
printf("%d\n",MAX(a*b,c*d));
return 0;
}
| main.c:4:9: error: macro names must be identifiers
4 | #define 11 long long
| ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
8 | scanf("%d %d %d %d",&a,&b,&c,&d):
| ^
| ;
|
s929486180 | p03826 | C | #include<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d):
printf("%d\n",MAX(a*b,c*d));
return 0;
}
| main.c:4:9: error: macro names must be identifiers
4 | #define 11 long long
| ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
8 | scanf("%d %d %d %d",&a,&b,&c,&d):
| ^
| ;
|
s158955419 | p03826 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << (a * b > c * d) ? a * b : c * d << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
9 | cout << (a * b > c * d) ? a * b : c * d << endl;
| ~~~~~~^~~~~~~
|
s072496434 | p03826 | C++ | /*
ye mera template hai
apna khud likho bc :P
*/
/*
Author : Sarvagya Agarwal
*/
#include<bits/stdc++.h>
using namespace std;
//defines
#define openin freopen("input.txt","r",stdin)
#define openout freopen("output.txt","w",stdout)
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define ll long long
#define int long long
#define mod 1000000007
#define repr(i,x,y) for (__typeof(x) i=x;i>=y;i--)
#define rep(i,x,y) for (__typeof(x) i=x;i<=y;i++)
#define all(c) (c).begin(),(c).end()
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
/* Print pair */
template <typename T,typename S>
ostream & operator << (ostream &os , const pair<T,S> &v) {
os << "(" ;
os << v.first << "," << v.second << ")" ;
return os ;
}
/* Print vector */
template <typename T>
ostream & operator << (ostream &os , const vector<T> &v) {
os << "[" ;
int sz = v.size() ;
for(int i = 0 ; i < sz ; ++i) {
os << v[i] ;
if(i!=sz-1)os << "," ;
}
os << "]\n" ;
return os ;
}
/* Print set */
template <typename T>
ostream & operator << (ostream &os , const set<T> &v) {
T last = *v.rbegin() ;
os << "[" ;
for(auto it : v) {
os << it ;
if(it != last) os << "," ;
}
os << "]\n" ;
return os ;
}
/* Print Map */
template <typename T,typename S>
ostream & operator << (ostream &os , const map<T,S> &v) {
for(auto it : v) {
os << it.first << " : " << it.second << "\n" ;
}
return os ;
}
int power(int a , int b)
{
int res = 1 ;
while(b)
{
if(b%2) {
res = (res * a) % mod ;
}
b/=2 ;
a = (a*a) % mod ;
}
return res ;
}
//debug
#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
const char* comma = strchr(names + 1, ',');cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...)
#endif
int32_t main()
{
fast;
int a , b , c , d ;
cin >> a >> b >> c >> d ;
cout << amx(a*b,c*d) << endl ;
return 0;
}
| a.cc: In function 'int32_t main()':
a.cc:103:13: error: 'amx' was not declared in this scope
103 | cout << amx(a*b,c*d) << endl ;
| ^~~
|
s911630103 | p03826 | C++ | #include<iostream>
#include<string>
using namespace std;
int min(int x,int y){
if(x<y)return x;
else return y;
}
__int64 N,A,B;
int a[100000];
int main(){
int sum=0;
cin>>N>>A>>B;
for(int i=0;i<N;i++){
cin>>a[i];
}
for(int i=0;i<N-1;i++){
sum+=min(A*(a[i+1]-a[i]),B);
}
cout<<sum<<endl;
} | a.cc:8:1: error: '__int64' does not name a type; did you mean '__int64_t'?
8 | __int64 N,A,B;
| ^~~~~~~
| __int64_t
a.cc: In function 'int main()':
a.cc:12:10: error: 'N' was not declared in this scope
12 | cin>>N>>A>>B;
| ^
a.cc:12:13: error: 'A' was not declared in this scope
12 | cin>>N>>A>>B;
| ^
a.cc:12:16: error: 'B' was not declared in this scope
12 | cin>>N>>A>>B;
| ^
|
s946822331 | p03826 | C++ | #include <bits/stdc++/h>
using namespace std;
int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max(a*b,c*d) << endl;
return 0;
} | a.cc:1:10: fatal error: bits/stdc++/h: No such file or directory
1 | #include <bits/stdc++/h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s759233532 | p03826 | C++ | int a,b,c,d;
cin>> a >> b >> c >> d;
count<< max(a*b, c:d)<<end1; | a.cc:2:1: error: 'cin' does not name a type
2 | cin>> a >> b >> c >> d;
| ^~~
a.cc:3:1: error: 'count' does not name a type
3 | count<< max(a*b, c:d)<<end1;
| ^~~~~
|
s951347039 | p03826 | C++ | int a,b,c,d;
cin>> a >> b >> c >> d:
count<< max(a*b, c:d)<<end1; | a.cc:2:1: error: 'cin' does not name a type
2 | cin>> a >> b >> c >> d:
| ^~~
|
s501295159 | p03826 | C | int a,b c,d;
cin>> a >> b >> c >> d:
cout<< max(a*b, c*d) <<end1; | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
1 | int a,b c,d;
| ^
main.c:2:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
2 | cin>> a >> b >> c >> d:
| ^~
|
s430183947 | p03826 | C++ | int a,b c,d;
cin>> a >> b >> c >> d:
cout<< max(a*b, c*d) <<end1; | a.cc:1:9: error: expected initializer before 'c'
1 | int a,b c,d;
| ^
a.cc:2:1: error: 'cin' does not name a type
2 | cin>> a >> b >> c >> d:
| ^~~
|
s093992575 | p03826 | C++ | #include <iostream>
int main() {
int a,b,c,d;
std::cin >> a >> b >> c >> d;
if (a * b > b * c) {
std::cout << a * b << std::endl;
} else {
std::cout << c * d << std::endl;
}
return 0:
} | a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before ':' token
15 | return 0:
| ^
| ;
a.cc:15:11: error: expected primary-expression before ':' token
|
s819855323 | p03826 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
ll a,b,c,d;
cin>>a>>b>>c>>d;
cout<<max(a*b,c*d);
} | a.cc: In function 'int main()':
a.cc:4:1: error: 'll' was not declared in this scope
4 | ll a,b,c,d;
| ^~
a.cc:5:6: error: 'a' was not declared in this scope
5 | cin>>a>>b>>c>>d;
| ^
a.cc:5:9: error: 'b' was not declared in this scope
5 | cin>>a>>b>>c>>d;
| ^
a.cc:5:12: error: 'c' was not declared in this scope
5 | cin>>a>>b>>c>>d;
| ^
a.cc:5:15: error: 'd' was not declared in this scope
5 | cin>>a>>b>>c>>d;
| ^
|
s864530745 | p03826 | C++ | include <iostream>
#include <cstdio>
using namespace std;
int main(){
int A,B,C,D;
cin >> A >> B >> C >> D;
if( A*B >= C*D )
cout << A*B << endl;
else
cout << C*D << endl;
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> A >> B >> C >> D;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <cstdio>
+++ |+#include <iostream>
3 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << A*B << endl;
| ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
8 | cout << A*B << endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include <cstdio>
+++ |+#include <ostream>
3 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << C*D << endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
10 | cout << C*D << endl;
| ^~~~
a.cc:10:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s101698123 | p03826 | C++ | include <iostream>
#include <cstdio>
using namespace std;
int main(){
int A,B,C,D;
cin >> A >> B >> C >> D;
if( A*B >= C*D )
cout << A*B << endl;
else
cout << C*D << endl;
return 0;
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> A >> B >> C >> D;
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <cstdio>
+++ |+#include <iostream>
3 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << A*B << endl;
| ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
8 | cout << A*B << endl;
| ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
2 | #include <cstdio>
+++ |+#include <ostream>
3 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout << C*D << endl;
| ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
10 | cout << C*D << endl;
| ^~~~
a.cc:10:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s136803178 | p03826 | C++ | #include <bits/stdc++.h>
int a, b, c, d;
int main() {
cin>>a>>b>>c>>d;
cout<<max(a*b, c*d)<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin>>a>>b>>c>>d;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout<<max(a*b, c*d)<<endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:5:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
5 | cout<<max(a*b, c*d)<<endl;
| ^~~
| std::max
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
5716 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
a.cc:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout<<max(a*b, c*d)<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s202543713 | p03826 | C | #include<stdio.h>
int main(){
int A,B,C,D;
//scanfで文字列以外を指定する時は&が必要
scanf("%d %d %d %d",&A,&B,&C,&D);
f(A*B>=C*D){
printf("%d",A*B);
}
else{
printf("%d",C*D);
}
return 0;
} | main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'f' [-Wimplicit-function-declaration]
6 | f(A*B>=C*D){
| ^
main.c:6:12: error: expected ';' before '{' token
6 | f(A*B>=C*D){
| ^
| ;
|
s537674103 | p03826 | C | #include<stdio.h>
int main(){
int A,B,C,D,E,F;
//scanfで文字列以外を指定する時は&が必要
scanf("%d %d %d %d",&A,&B,&C,&D);
E = A*B;
F =C*D;
if(E>= F){
printf("%d",E);
}
else{
printf("%d",F);
}
return 0; | main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
14 | return 0;
| ^~~~~~
|
s219793223 | p03826 | Java | public class Main {
void run() {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
if (a * b < c * d) {
System.out.println(c * d);
} else {
System.out.println(a * b);
}
}
public static void main(String[] args) {
new Main().run();
}
}
| Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s362285603 | p03826 | C++ | #include <iostream>
using namespace std;
int mani(void){
int a,b,c,d;
cin >> a >> b >> c >> d;
a*=b;
c*=d;
cout << (a>=c)?a:c << endl;
return 0;
} | a.cc: In function 'int mani()':
a.cc:10:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
10 | cout << (a>=c)?a:c << endl;
| ~~^~~~~~~
|
s505905109 | p03826 | C++ | #include <iostream>
using namespace std;
void main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a*b > c*d)
cout << a * b << endl;
else
cout << c * d << endl;
} | a.cc:5:1: error: '::main' must return 'int'
5 | void main()
| ^~~~
|
s842737304 | p03826 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max(a*b,c*d) << endl;
return 0;
}#include<iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max(a*b,c*d) << endl;
return 0;
} | a.cc:8:2: error: stray '#' in program
8 | }#include<iostream>
| ^
a.cc:8:3: error: 'include' does not name a type
8 | }#include<iostream>
| ^~~~~~~
a.cc:10:5: error: redefinition of 'int main()'
10 | int main(){
| ^~~~
a.cc:3:5: note: 'int main()' previously defined here
3 | int main(){
| ^~~~
|
s870096031 | p03826 | Java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
long a=sc.nextInt();
long b=1;
for(int i=1;i<=a;i++){
b*=i;
}
a=b%(long)10000000000;
System.out.println(a);
}
} | Main.java:10: error: integer number too large
a=b%(long)10000000000;
^
1 error
|
s893358010 | p03826 | C++ | package main
import (
"fmt"
)
func main() {
var x, y, z, w int64
fmt.Scan(&x, &y, &z, &w)
ans := Max(x*y, z*w)
fmt.Println(ans)
}
func Min(x, y int64) int64 {
if x < y {
return x
}
return y
}
func Max(x, y int64) int64 {
if x > y {
return x
}
return y
}
| a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
a.cc:14:1: error: 'func' does not name a type
14 | func Min(x, y int64) int64 {
| ^~~~
a.cc:21:1: error: 'func' does not name a type
21 | func Max(x, y int64) int64 {
| ^~~~
|
s523702133 | p03826 | C | #include<stdlib.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,& d);
printf("%d\n", max(a*b, c*d) );
}
| main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
4 | scanf("%d%d%d%d",&a,&b,&c,& d);
| ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
1 | #include<stdlib.h>
+++ |+#include <stdio.h>
2 | int main(){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | scanf("%d%d%d%d",&a,&b,&c,& d);
| ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | printf("%d\n", max(a*b, c*d) );
| ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:18: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
5 | printf("%d\n", max(a*b, c*d) );
| ^~~
|
s777819979 | p03826 | C | #include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,& d);
printf("%d\n", max(a*b, c*d) );
}
| main.c: In function 'main':
main.c:5:18: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
5 | printf("%d\n", max(a*b, c*d) );
| ^~~
|
s350032761 | p03826 | C | #include<math.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,& d);
printf("%d\n", max(a*b, c*d) );
}
| main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
4 | scanf("%d%d%d%d",&a,&b,&c,& d);
| ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
1 | #include<math.h>
+++ |+#include <stdio.h>
2 | int main(){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | scanf("%d%d%d%d",&a,&b,&c,& d);
| ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
5 | printf("%d\n", max(a*b, c*d) );
| ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:18: error: implicit declaration of function 'max'; did you mean 'fmax'? [-Wimplicit-function-declaration]
5 | printf("%d\n", max(a*b, c*d) );
| ^~~
| fmax
|
s633877593 | p03826 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)
#define vint(v, n) vector<int> v(n); REP(i,n) cin >> v[i];
#define vvint(v, w, n) vector<int> v(n); vector<int> w(n); REP(i,n) cin >> v[i] >> w[i];
#define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
#define vdouble(v, n) vector<double> v(n); REP(i,n) cin >> v[i];
#define vvdoube(v, n1, n2) vector<vector<double> > v(n1, vector<double>(n2, 0)); REP(i,n1) REP(j,n1) cin >> v[i][j];
#define string(x) string x; cin >> x;
#define vstring(v, n) vector<string> v(n); REP(i,n){string a; std::cin >> a; v.push_back(a); }
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).begin(), (v).end(), std::greater<int>()
#define len(v) (v).length()
#define FIND(s, n) (s.find(n) != s.end())
#define SORT(a) sort(all(a))
static const string abet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
static const long long MOD = 1000000007;
static const double PI=3.1415926535897932;
static const int INF = 0x3f3f3f3f;
static const int INFTY = (1 << 29);
static const long long LINFTY = (1LL << 32);
static const int dy4[]={0, 0, 1, -1};
static const int dx4[]={1, -1, 0, 0};
static const int dx8[] = {1, 1, 1, 0, 0, -1, -1, -1};
static const int dy8[] = {-1, 0, 1, -1, 1, -1, 0, 1};
int N, M, res;
int G[100][100];
int c[100], m[100];
int dfs(int b, int n) {
c[n] = 1;
for (int i = 0; i < N; i++) {
if (b == i || n == i) continue;
if (G[n][i]) {
if (c[i] == 1) return 0;
if (!dfs(n, i)) return 0;
}
}
return 1;
}
int isPrime(int x){
int i;
if(x < 2) return 0;
else if(x == 2) return 1;
if( x%2 == 0) return 0;
for(i = 3; i*i <= x; i += 2){
if(x%i == 0) return 0;
}
return 1;
}
const int pmax = 1000000;
bool isPrime_table[pmax];
//const is necessary;
void eratos(void){
int i, j;
double sqrtmax=sqrt(pmax);
REP(k, pmax) isPrime_table[k] = true; /* Initialization */
/* Sieve process */
isPrime_table[0] = false;
isPrime_table[1] = false;
/* 0 and 1 are not prime. */
for (i=2; i <= sqrtmax; i++){
if (isPrime_table[i]==true){ /* i is prime. */
for (j=i; i*j<pmax; j++){
isPrime_table[i*j] = false; /* multiples of i are not prime. */
}
}
}
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
cout <<< max(a*b, c*d) << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:98:16: error: expected primary-expression before '<' token
98 | cout <<< max(a*b, c*d) << endl;
| ^
a.cc:98:32: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
98 | cout <<< max(a*b, c*d) << endl;
| ~~~~~~~~~~~~~~^~~~~~~
|
s060466125 | p03826 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)
#define vint(v, n) vector<int> v(n); REP(i,n) cin >> v[i];
#define vvint(v, w, n) vector<int> v(n); vector<int> w(n); REP(i,n) cin >> v[i] >> w[i];
#define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
#define vdouble(v, n) vector<double> v(n); REP(i,n) cin >> v[i];
#define vvdoube(v, n1, n2) vector<vector<double> > v(n1, vector<double>(n2, 0)); REP(i,n1) REP(j,n1) cin >> v[i][j];
#define string(x) string x; cin >> x;
#define vstring(v, n) vector<string> v(n); REP(i,n){string a; std::cin >> a; v.push_back(a); }
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).begin(), (v).end(), std::greater<int>()
#define len(v) (v).length()
#define FIND(s, n) (s.find(n) != s.end())
#define SORT(a) sort(all(a))
static const string abet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
static const long long MOD = 1000000007;
static const double PI=3.1415926535897932;
static const int INF = 0x3f3f3f3f;
static const int INFTY = (1 << 29);
static const long long LINFTY = (1LL << 32);
static const int dy4[]={0, 0, 1, -1};
static const int dx4[]={1, -1, 0, 0};
static const int dx8[] = {1, 1, 1, 0, 0, -1, -1, -1};
static const int dy8[] = {-1, 0, 1, -1, 1, -1, 0, 1};
int N, M, res;
int G[100][100];
int c[100], m[100];
int dfs(int b, int n) {
c[n] = 1;
for (int i = 0; i < N; i++) {
if (b == i || n == i) continue;
if (G[n][i]) {
if (c[i] == 1) return 0;
if (!dfs(n, i)) return 0;
}
}
return 1;
}
int isPrime(int x){
int i;
if(x < 2) return 0;
else if(x == 2) return 1;
if( x%2 == 0) return 0;
for(i = 3; i*i <= x; i += 2){
if(x%i == 0) return 0;
}
return 1;
}
const int pmax = 1000000;
bool isPrime_table[pmax];
//const is necessary;
void eratos(void){
int i, j;
double sqrtmax=sqrt(pmax);
REP(k, pmax) isPrime_table[k] = true; /* Initialization */
/* Sieve process */
isPrime_table[0] = false;
isPrime_table[1] = false;
/* 0 and 1 are not prime. */
for (i=2; i <= sqrtmax; i++){
if (isPrime_table[i]==true){ /* i is prime. */
for (j=i; i*j<pmax; j++){
isPrime_table[i*j] = false; /* multiples of i are not prime. */
}
}
}
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
cout <<< max(a*B, c*d) << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:98:16: error: expected primary-expression before '<' token
98 | cout <<< max(a*B, c*d) << endl;
| ^
a.cc:98:24: error: 'B' was not declared in this scope
98 | cout <<< max(a*B, c*d) << endl;
| ^
|
s770816709 | p03826 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)
#define vint(v, n) vector<int> v(n); REP(i,n) cin >> v[i];
#define vvint(v, w, n) vector<int> v(n); vector<int> w(n); REP(i,n) cin >> v[i] >> w[i];
#define vlint(v, n) vector<ll int> v(n); REP(i,n) cin >> v[i];
#define vdouble(v, n) vector<double> v(n); REP(i,n) cin >> v[i];
#define vvdoube(v, n1, n2) vector<vector<double> > v(n1, vector<double>(n2, 0)); REP(i,n1) REP(j,n1) cin >> v[i][j];
#define string(x) string x; cin >> x;
#define vstring(v, n) vector<string> v(n); REP(i,n){string a; std::cin >> a; v.push_back(a); }
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).begin(), (v).end(), std::greater<int>()
#define len(v) (v).length()
#define FIND(s, n) (s.find(n) != s.end())
#define SORT(a) sort(all(a))
static const string abet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
static const long long MOD = 1000000007;
static const double PI=3.1415926535897932;
static const int INF = 0x3f3f3f3f;
static const int INFTY = (1 << 29);
static const long long LINFTY = (1LL << 32);
static const int dy4[]={0, 0, 1, -1};
static const int dx4[]={1, -1, 0, 0};
static const int dx8[] = {1, 1, 1, 0, 0, -1, -1, -1};
static const int dy8[] = {-1, 0, 1, -1, 1, -1, 0, 1};
int N, M, res;
int G[100][100];
int c[100], m[100];
int dfs(int b, int n) {
c[n] = 1;
for (int i = 0; i < N; i++) {
if (b == i || n == i) continue;
if (G[n][i]) {
if (c[i] == 1) return 0;
if (!dfs(n, i)) return 0;
}
}
return 1;
}
int isPrime(int x){
int i;
if(x < 2) return 0;
else if(x == 2) return 1;
if( x%2 == 0) return 0;
for(i = 3; i*i <= x; i += 2){
if(x%i == 0) return 0;
}
return 1;
}
const int pmax = 1000000;
bool isPrime_table[pmax];
//const is necessary;
void eratos(void){
int i, j;
double sqrtmax=sqrt(pmax);
REP(k, pmax) isPrime_table[k] = true; /* Initialization */
/* Sieve process */
isPrime_table[0] = false;
isPrime_table[1] = false;
/* 0 and 1 are not prime. */
for (i=2; i <= sqrtmax; i++){
if (isPrime_table[i]==true){ /* i is prime. */
for (j=i; i*j<pmax; j++){
isPrime_table[i*j] = false; /* multiples of i are not prime. */
}
}
}
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
cout <<< max(a*B, c*d) << endl
return 0;
}
| a.cc: In function 'int main()':
a.cc:98:16: error: expected primary-expression before '<' token
98 | cout <<< max(a*B, c*d) << endl
| ^
a.cc:98:24: error: 'B' was not declared in this scope
98 | cout <<< max(a*B, c*d) << endl
| ^
|
s433676521 | p03826 | C++ | #include<iostream>
#define Min min((x[loop] - x[loop - 1])*A, B)
#define max (int)pow(10,9)
using namespace std;
int min(int, int);
int main(){
int N, A, B;
int x[100000];
int loop;
long long int ans = 0;
int ans2 = 0;
cin >> N >> A >> B;
for (loop = 0; loop < N; loop++)cin >> x[loop];
for (loop = 1; loop < N; loop++){
ans += Min%max;
ans2 += Min / max;
}
if (ans2 != 0)cout << ans2;
cout<< ans << "\n";
return 0;
}
int min(int a, int b){
if (a>b)return b;
else return a;
} | a.cc: In function 'int main()':
a.cc:3:18: error: 'pow' was not declared in this scope
3 | #define max (int)pow(10,9)
| ^~~
a.cc:19:28: note: in expansion of macro 'max'
19 | ans += Min%max;
| ^~~
|
s288921803 | p03826 | C++ | #include<bits/stdc++.h>
const long long INF = LLONG_MAX / 2;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
#define FOR(i,r,n) for(ll i = (ll)(r); i < (ll)(n); i++)
#define REP(i,n) FOR(i,0,n)
#define ll long long int
#define ALL(x) x.begin(),x.end()
using namespace std;
ll ans = 0, sum = 0, n, k, counter = 0, w, h;
string s;
vector<ll> v;
vector < pair<ll, ll > > vp;
vector<vector<ll> > vv(50, vector<ll>(50, INF));
vector<string> vs;
vector<char> vc;
vector<ll> vi;
/*--------------------template--------------------*/
int main() {
ll a, b, c, d, e, f;
cin >> a >> b >> c >> d;
e = a*b;
f = c*d;
cout << max(e, f) >> endl;
} | a.cc: In function 'int main()':
a.cc:25:27: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>')
25 | cout << max(e, f) >> endl;
| ~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: couldn't deduce template parameter '_IntegerType'
25 | cout << max(e, f) >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
In file included from /usr/include/c++/14/istream:1109,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: couldn't deduce template parameter '_Tp'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:25:30: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
25 | cout << max(e, f) >> endl;
| ^~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operat |
s426558550 | p03826 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define inf (int)1000000007
#define rep(i, n) for(int i = 0; i < (n); i++)
#define trep(i, n) for(int i = 0; i <= (n); i++)
#define rrep(i, n) for(int i = (n) - 1; i >= 0; i--)
#define trrep(i, n) for(int i = (n); i >= 0; i--)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << max(a * b, c * d) << endl;
}
| cc1plus: error: '::main' must return 'int'
|
s398852544 | p03826 | C++ | #include <iostream>
using namespace std;
int mani(){
int A, B, C, D;
cin >> A;
cin >> B;
cin >> C;
cin >> D;
if(A * B >= C * D)
cout << A*B;
else if(A*B < C*D)
cout << C*D;
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s928232598 | p03826 | C++ | #include<cardio>
int main()
{
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
if (A * B > C * D)
printf("%d¥n", A * B);
else
printf("%d¥n", C * D);
return 0;
}
| a.cc:1:9: fatal error: cardio: No such file or directory
1 | #include<cardio>
| ^~~~~~~~
compilation terminated.
|
s410659643 | p03826 | C++ | a,b,c,d=gets.split.map &:to_i;p [a*b,c*d].max | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c,d=gets.split.map &:to_i;p [a*b,c*d].max
| ^
a.cc:1:31: error: 'p' does not name a type
1 | a,b,c,d=gets.split.map &:to_i;p [a*b,c*d].max
| ^
|
s066135798 | p03826 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned long long a, b, c, d, ans, ans1;
cin>>a>>b>>c>>d;
ans = a*b;
ans1 = c*d;
if(ans>ans1)
cout<<ans<<endl;;
else
cout<<ans1<<endl;;
}
| a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
12 | else
| ^~~~
|
s014217540 | p03826 | C | #include <stdio.h>
int main(){
int n;
char s[1000];
int s[100];
int i;
int x=1;
int o=0;
scanf("%d%s",&n,s);
for(i=0;i<n;i++){
if(s[i]=='I'){
printf("+1\n");
++x;s[o]=x;
o++;
}else if(s[i]=='D'){
--x;
s[o]=x;
o++;
printf("-1\n");
}
}
printf("%d",x);
return 0;
} | main.c: In function 'main':
main.c:5:5: error: conflicting types for 's'; have 'int[100]'
5 | int s[100];
| ^
main.c:4:6: note: previous declaration of 's' with type 'char[1000]'
4 | char s[1000];
| ^
|
s659870035 | p03826 | C++ | #include<stdio.h>
int main()
{
int A,B,C,D,sum=1,sum2=1;
scanf("%d%d%d%d",&A,&B,&C,&D);
sum=A*B;
sum2=C*D;
if(sum>sum2)
` printf("%d",sum);
else if(sum2>=sum)
printf("%d",sum2);
}
| a.cc:9:5: error: stray '`' in program
9 | ` printf("%d",sum);
| ^
|
s244677841 | p03826 | C | #include<stdio.h>
int main()
{
int A,B,C,D,sum=1,sum2=1;
scanf("%d%d%d%d",&A,&B,&C,&D);
sum=A*B;
sum2=C*D;
if(sum>sum2)
` printf("%d",sum);
else if(sum2>sum)
printf("%d",sum2);
else
printf("%d",sum);
return 0;
}
| main.c: In function 'main':
main.c:9:5: error: stray '`' in program
9 | ` printf("%d",sum);
| ^
|
s187400279 | p03826 | C++ | #include<iostream>
using namespace std;
int main()
{
int a, b, c, d, e, f, g;
cin >> a,b,c,d;
e = a * b;
f = c * d;
if ( e => f )
g = e;
else g = f;
cout << g << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '>' token
9 | if ( e => f )
| ^
|
s118858083 | p03826 | C++ | #include "iostream"
using namespace std;
int main(){
int a, b, c, d, e, f;
cin << a << b << c << d;
e = a*b;
f = c*d;
if(e >= f){
cout << e << endl;
}
else{
cout << f << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin << a << b << c << d;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:13: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << a << b << c << d;
| ~~~~^~~~
a.cc:6:13: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:6:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << a << b << c << d;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:6:9: required from here
6 | cin << a << b << c << d;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.