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"...
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 in...
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()); in...
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()); in...
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 in...
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' dec...
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 st...
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()); in...
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:...
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()); i...
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()); i...
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(...
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()); i...
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...
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.pars...
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);...
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, n...
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 {...
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 ...
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);...
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...
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 char...
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/b...
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/...
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/...
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 | ...
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 ...
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: ...
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){ ...
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...
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); } e...
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...
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...
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]);  ...
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 chara...
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 l...
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); } ...
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 ...
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:...
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 addi...
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 addi...
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...
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.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 ...
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 ...
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 ma...
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)...
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 <<< ma...
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)...
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)...
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 <...
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, ...
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 f...
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,...
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_ist...