submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s398052648
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; int c={13,1,2,3,4,5,6,7,8,9,10,11,12} if (c[a-1]>c[b-1]) cout <<"Alice"<<endl; else if (c[a-1]=c[b-1]) cout <<"Draw"<<endl; else cout <<"Bob"<<endl; }
a.cc: In function 'int main()': a.cc:7:13: error: scalar object 'c' requires one element in initializer 7 | int c={13,1,2,3,4,5,6,7,8,9,10,11,12} | ^ a.cc:8:9: error: expected ',' or ';' before 'if' 8 | if (c[a-1]>c[b-1]) cout <<"Alice"<<endl; | ^~ a.cc:9:9: error...
s752788921
p03803
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.InputMismatchException; import java.util.List; import java.util.StringTokenizer; public class M...
Main.java:13: error: '{' expected public class Main ^ Main.java:15: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws IOException { ^ (use --enable-preview to enable unnamed classes) Main.java:103: error: class, int...
s754711773
p03803
C++
#include <iostream> using namespace std; int main() { int a,b; cic >> a >> b; if(a == 1){ a = 13; } if(b == 1){ b = 11; } if(a > b) { cout << "Alice" << endl; } else if(b > a){ cout << "Bob" << endl; }else if(a == b){ cout << "Draw" << endl; } else { cout << "Draw"...
a.cc: In function 'int main()': a.cc:9:3: error: 'cic' was not declared in this scope 9 | cic >> a >> b; | ^~~
s271887296
p03803
C++
#include <iostream> using namespace std; int main() { int a,b; cic >> a >> b; if(a == 1){ a = 13; } if(b == 1){ b = 11; } if(a > b) { cout << "Alice" << endl; } else if(b > a){ cout << "Bob" << endl; } else { cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:9:3: error: 'cic' was not declared in this scope 9 | cic >> a >> b; | ^~~
s614945257
p03803
C++
あ
a.cc:1:1: error: '\U00003042' does not name a type 1 | あ | ^~
s210164668
p03803
C++
#include<iostream> using namespace std; int main () { int A,B; cin>>A>>B; if(A==B){ cout<<"Draw"<<endl; }else if(B==1||A!=1){ cout<<"Bob"<<endl; }else(A>B){ cout<<"Alice"<<endl; }else(A<B){ cout<<"Bob"<<endl; }else(A==1||B!=1){ cout<<"Alice"<<endl; } return0 }
a.cc: In function 'int main()': a.cc:12:13: error: expected ';' before '{' token 12 | }else(A>B){ | ^ | ; a.cc:14:4: error: 'else' without a previous 'if' 14 | }else(A<B){ | ^~~~ a.cc:14:13: error: expected ';' before '{' token 14 | }else(A<B){ | ...
s099904731
p03803
C++
#include<iostream> using namespace std; int main () { int A,B; cin>>A>>B; if(A==B){ cout<<"Draw"<<endl; }else if(B==1||A!=1){ cout<<"Bob"<<endl; }else if(A>B){ cout<<"Alice"<<endl; }else if(A<B){ cout<<"Bob"<<endl; }else (A==1||B!=1){ cout<<"Alice"<<endl; } }
a.cc: In function 'int main()': a.cc:16:21: error: expected ';' before '{' token 16 | }else (A==1||B!=1){ | ^ | ;
s605141450
p03803
C++
#include<iostream> using namespace std; int main () { int A,B; cin>>A>>B; if(A==B){ cout<<"Draw"<<endl; }else if(B==1||A!=1){ cout<<"Bob"<<endl; }else if(A>B){ cout<<"Alice"<<endl; }else if(A<B){ cout<<"Bob"<<endl; }else (A==1||B!=1){ cout<<"Alice"<<endl; }
a.cc: In function 'int main()': a.cc:16:21: error: expected ';' before '{' token 16 | }else (A==1||B!=1){ | ^ | ; a.cc:19:2: error: expected '}' at end of input 19 | } | ^ a.cc:4:13: note: to match this '{' 4 | int main () { | ^
s422189386
p03803
C++
#include<iostream> using namespace std; int main () { int A,B; cin>>A>>B; if(A==1||B!=1){ cout<<"Alice"<<endl; }else if(B==1||A!=1){ cout<<"Bob"<<endl; }else (A>B){ cout<<"Alice"<<endl; }else (A<B){ cout<<"Bob"<<endl; }else (A==B){ cout<<"Draw"<<endl; } }
a.cc: In function 'int main()': a.cc:12:14: error: expected ';' before '{' token 12 | }else (A>B){ | ^ | ; a.cc:14:4: error: 'else' without a previous 'if' 14 | }else (A<B){ | ^~~~ a.cc:14:14: error: expected ';' before '{' token 14 | }else (A<B){ | ...
s577548284
p03803
C++
#include <iostream> using namespace std; int main() { int A; int B; cin >> A; cin >> B; if(A == 1){ A = 14; if(B == 1){ B = 14; if( A < B ){ cout << "Alice" << endl;} else if( A == B ){ cout << "Draw" << endl;} else if( A > B ){ cout << "Bob" << endl;} ...
a.cc: In function 'int main()': a.cc:20:2: error: expected '}' at end of input 20 | } | ^ a.cc:9:15: note: to match this '{' 9 | if(A == 1){ | ^ a.cc:20:2: error: expected '}' at end of input 20 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ...
s572072430
p03803
C++
#include <iostream> using namespace std; int main() { int A; int B; cin >> A; cin >> B; if( A < B ){ cout << "Alice" << endl; else if( A == B ){ cout << "Draw" << endl; else if( A > B ){ cout << "Bob" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:5: error: expected '}' before 'else' 11 | else if( A == B ){ | ^~~~ a.cc:9:16: note: to match this '{' 9 | if( A < B ){ | ^ a.cc:13:5: error: expected '}' before 'else' 13 | else if( A > B ){ | ^~~~ a.cc:11:22: note: ...
s905113802
p03803
C++
#include <iostream> using namespace std; int main(){ int A, B; cin >> A >> B; if(A == B){ cout << "Draw" << endl; }else if(A > B and B != 1){ cout << "Alice" << endl; }else if(B > A and A != 1){ cout << "Bob" << endl; }else if(A == 1 and B != 1){ cout << "Alice" << endl; }else(B == 1 and A...
a.cc: In function 'int main()': a.cc:14:27: error: expected ';' before 'cout' 14 | }else(B == 1 and A != 1) | ^ | ; 15 | cout << "Bob" << endl; | ~~~~
s706765882
p03803
C++
#include <iostream> using namespace std; int main(){ int A, B; cin >> A >> B; if(A == B){ cout << "Draw" << endl; }else if(A > B and B != 1){ cout << "Alice" << endl; }else if(B > A and A != 1){ cout << "Bob" << endl; }else if(A == 1 and B != 1){ cout << "Alice" << endl; }else(B == 1 and A...
a.cc: In function 'int main()': a.cc:14:27: error: expected ';' before '{' token 14 | }else(B == 1 and A != 1){ | ^ | ;
s887872389
p03803
C++
#include <bits/stdc++.h> using namespace std; #define int long long struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast; /* cpp template {{{ */ /* short */ #define pb push_back #define eb emplace_back #define mp make_pair #define Fi first #define Se second #define ALL(v) (v).begin(), (v).end() #...
a.cc:5:13: error: 'long long long' is too long for GCC 5 | #define int long long | ^~~~ a.cc:80:18: note: in expansion of macro 'int' 80 | vector<long long int> dijkstra(int s,int v, vector<vector<pii>> G) | ^~~ a.cc:5:18: error: 'long long long' is too long for GCC 5...
s734787499
p03803
C
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; if(a==b){ cout << "Draw" << endl; }else if(a==1){ cout << "Alice" << endl; }else if(b == 1){ cout << "Bob" << endl; }else if(a>b){ cout << "Alice" << endl; }else{ cou...
main.c:2:10: fatal error: bits/stdc++.h: No such file or directory 2 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s021443150
p03803
C
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); if(a==1&&b==1) printf("Draw\n"); else if(a==1&&b!=1) printf("Alice\n"); else if(a!=1&&b==1) printf("Bob\n"); else if(a<b) printf("Bob\n"); else if(b<a) printf("Alice\n"); return 0 }
main.c: In function 'main': main.c:11:11: error: expected ';' before '}' token 11 | return 0 | ^ | ; 12 | } | ~
s553607880
p03803
C++
#include <iostream> using namespace std; vector used; vector connect; int N,M; int main(int now , int depth) { if (used[now]) return 0; if (depth == N) return 1; used[now] = 1; int ans = 0; for (int i = 0; i < N ; i++){ if(connect[now][i]) ans += dfs (i, depth + 1); } used[now] = 0; return ans; } int main(...
a.cc:3:1: error: 'vector' does not name a type 3 | vector used; | ^~~~~~ a.cc:4:1: error: 'vector' does not name a type 4 | vector connect; | ^~~~~~ a.cc:7:5: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain] 7 | int main(int now , int depth) { | ^~~~ a.cc: ...
s803047446
p03803
C++
#include <iostream> using namespace std; int main(){ int A[2],i; for(i=0;i<2;i++){ cin >> A[i]; if(A[i]==1) A[i]=14; } if(A[0]>A[1]) cout << "Alice" << endl; if(A[0]<A[1]) cout << "Bob" << endl; if(A[0==A[1]) cout << "Draw" << endl; }
a.cc: In function 'int main()': a.cc:12:21: error: expected ']' before ')' token 12 | if(A[0==A[1]) cout << "Draw" << endl; | ^ | ]
s073052450
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B; scanf("%d", &A); scanf("%d", &B); if((A>B && B!=1) || (A==1 && B!=1)){ printf("Alice"); }else if((A<B && A!=1) || (B==1 && A!=1)){ printf("Bob"); }else if(A==B){ printf("Draw"); }
a.cc: In function 'int main()': a.cc:14:4: error: expected '}' at end of input 14 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s730194162
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B; scanf("%d", &A); scanf("%d", &B); if((A>B && B!=1) || (A==1 && B!=1)){ printf("Alice"); }else if(A<B && A!=1) || (B==1 && A!=1)){ printf("Bob"); }else if(A==B){ printf("Draw"); }
a.cc: In function 'int main()': a.cc:10:25: error: expected primary-expression before '||' token 10 | }else if(A<B && A!=1) || (B==1 && A!=1)){ | ^~ a.cc:14:4: error: expected '}' at end of input 14 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ...
s076222604
p03803
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(); if(a == 1){ a=14; } if(b == 1){ b=14; } if(A>B){ System.out.println("Alice"); }else if(A == B){ ...
Main.java:13: error: cannot find symbol if(A>B){ ^ symbol: variable A location: class Main Main.java:13: error: cannot find symbol if(A>B){ ^ symbol: variable B location: class Main Main.java:15: error: cannot find symbol }else if(A == B){ ^ symbol: variable A ...
s660752604
p03803
C++
include<iostream> using namespace std; int main() { int A, B; cin >> A >> B; if(A == 1){ A = 14; } if(B == 14) { B = 14; } if((A - B) > 0) { cout << "Alice" << endl; }else if((A - B) < 0) { cout << "Bob" << endl; }else{ cout << "Draw" << 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:5:2: error: 'cin' was not declared in this scope 5 | cin >> A >> B; | ^~~ a.cc:13:3: error: 'cout' was not declared in this scope 13 | cout << "Alice" << endl; | ^~~~ a...
s083223111
p03803
C++
A, B = map(int, input().split()) A = (A-2)%13 B = (B-2)%13 if A > B: print("Alice") elif A < B: print("Bob") else: print("Draw")
a.cc:1:1: error: 'A' does not name a type 1 | A, B = map(int, input().split()) | ^
s574486697
p03803
C++
>#include<iostream> >#include<string> >#include<algorithm> >using namespace std; >int main(){ > int a,b; > cin>>a>>b; > if(a==1){ > cout<<"Alice"<<endl; > > } > > else if(b==1){ > cout<<"Bob"<<endl; > > } > > > else if(a<b){ > cout<<"Bob"<<endl; > > } > > else if(a>b){ > cout<<"Alice"<<endl; > > } > >...
a.cc:1:2: error: stray '#' in program 1 | >#include<iostream> | ^ a.cc:2:2: error: stray '#' in program 2 | >#include<string> | ^ a.cc:3:2: error: stray '#' in program 3 | >#include<algorithm> | ^ a.cc:1:1: error: expected unqualified-id before '>' token 1 | >#include<iostream> ...
s383147137
p03803
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main{ int a,b; cin>>a>>b; if(a<=b){ cout<<"Alice"<<endl; } else if(a>=b){ cout<<"Bob"<<endl; } else if(a==1){ cout<<"Alice"<<endl; } else if(b==1){ cout<<"Bob"<<endl; } }
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:9: error: expected primary-expression before 'int' 6 | int a,b; | ^~~ a.cc:6:9: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc...
s841148410
p03803
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main{ int a,b; cin>>a>>b; if(a<b){ cout<<"Alice"<<endl; } else if(a>b){ cout<<"Bob"<<endl; } else if(a==1){ cout<<"Alice"<<endl; } else if(b==1){ cout<<"Bob"<<endl; } }
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:9: error: expected primary-expression before 'int' 6 | int a,b; | ^~~ a.cc:6:9: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc...
s610559995
p03803
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main{ int a,b; cin>>a>>b; if(a<b){ cout<<Alice<<endl; } else if(a>b){ cout<<Bob<<endl; } else if(a==1){ cout<<Alice<<endl; } else if(b==1){ cout<<Bob<<endl; } }
a.cc:5:5: error: cannot declare '::main' to be a global variable 5 | int main{ | ^~~~ a.cc:6:9: error: expected primary-expression before 'int' 6 | int a,b; | ^~~ a.cc:6:9: error: expected '}' before 'int' a.cc:5:9: note: to match this '{' 5 | int main{ | ^ a.cc...
s323657396
p03803
C++
#include<iostream> using namespace std; int main() { int A,B; cin>>A>>B; if(A!=a && B!=1) { if(A>B) { cout<<"Alice"<<endl; } if(A<B) { cout<<"Bob"<<endl; } if(A==B) { cout<<"Draw"<<endl; } } if(A==1) { if(B==1) { cout<<"Draw"<<endl; }else{ cout<<"Alice"<<...
a.cc: In function 'int main()': a.cc:7:9: error: 'a' was not declared in this scope 7 | if(A!=a && B!=1) | ^
s800430256
p03803
C
include<stdio.h> int main(){ int a,b,c,d,e,f; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&f); if((a+5*b+10*c+d*50+e*100+f*500)>=1000){ printf("1\n"); }else{ printf("0\n"); } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s837854208
p03803
C++
#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a==1)a=14; if(b==1)b=14; if(a==b) cont<<"Draw"; else if(a>b) cout<<"Alice"; else cout<<"Bob"; system("pause"); return“0”; }
a.cc:13:1: error: extended character “ is not valid in an identifier 13 | return“0”; | ^ a.cc:13:1: error: extended character ” is not valid in an identifier a.cc: In function 'int main()': a.cc:9:10: error: 'cont' was not declared in this scope; did you mean 'const'? 9 | if(a==b) cont<<"Draw"; | ...
s718392849
p03803
C++
#include <iostream> using namespace std; int main() { int A,B; cin>>A>>B; A=(A+11)%13; B=(B+11)%13; if (A>B)cout <<"Alice"<<endl; if (B>A)cout <<"Bob"<<endl; if (A=B)cout <<"Draw"<<endl; system ("pause"); return 0; }#include <iostream> using namespace std; int main() { int A,B; cin>>A>>B; A=(A+11)%13;...
a.cc:14:2: error: stray '#' in program 14 | }#include <iostream> | ^ a.cc:27:2: error: stray '#' in program 27 | }#include <iostream> | ^ a.cc:40:2: error: stray '#' in program 40 | }#include <iostream> | ^ a.cc:53:2: error: stray '#' in program 53 | }#include <iostream> | ^ a.cc...
s849335436
p03803
C++
#include<iostream> using namespace std; int main() { int a,b; cin>>a; cin>>b; if (a==1) int a=14 if (a>b) cout<<"Alice" if (b==1) int b=14 if (b>a) cout<<"Bob"; if (b==a) cout<<"Draw"; system ("pause"); return 0; }
a.cc: In function 'int main()': a.cc:10:1: error: expected ',' or ';' before 'if' 10 | if (a>b) | ^~
s598783919
p03803
C++
#include <iostream> #include<string> #include<algorithm> #include<stdio.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"<<endl; return 0; } if(a==1)a+=13; if(b==1)b+=13; cout<<(a>b)?"Alice":"Bob"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:19:30: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<' 19 | cout<<(a>b)?"Alice":"Bob"<<endl; | ~~~~~^~~~~~
s561161222
p03803
C++
#include <iostream> #include<string> #include<algorithm> #include<stdio.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"<<endl; return 0; } if(a==1)a+=13 if(b==1)b+=13 cout<<(a>b)?"Alice":"Bob"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:18: error: expected ';' before 'if' 16 | if(a==1)a+=13 | ^ | ; 17 | if(b==1)b+=13 | ~~
s176433125
p03803
C++
#include <iostream> #include <string> #include <array> #include <vector> #include <math.h> #include <algorithm> #include <set> #include <deque> #include <utility> #include <map> #define ll long long int #define MAX 1000000 using namespace std; int main(void) { int a, b; cin >> a >> b; if (a == b) { cout << "D...
a.cc:65:5: error: redefinition of 'int main()' 65 | int main(void) | ^~~~ a.cc:17:5: note: 'int main()' previously defined here 17 | int main(void) | ^~~~
s303692133
p03803
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { //BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); /String line = br.readLine(); Scanner scan = new Scanner(System.i...
Main.java:10: error: illegal start of expression /String line = br.readLine(); ^ Main.java:10: error: ';' expected /String line = br.readLine(); ^ 2 errors
s119365185
p03803
C++
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); if(a > b){ if(b == 1){ System.out.println("Bob"); }else{ System....
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.IOException; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.Scanner; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s597032241
p03803
C++
a, b = map(int, input().split()) if a == 1 : a = 14 if b == 1 : b = 14 if a > b : print ('Alice') else : print('Bob')
a.cc:7:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 7 | print ('Alice') | ^~~~~~~ a.cc:9:11: warning: multi-character character constant [-Wmultichar] 9 | print('Bob') | ^~~~~ a.cc:1:1: error: 'a' does not name a type 1 | a, b ...
s421709149
p03803
C++
#include<iostream> using namespace std; int main(){ int A,B; cin >> A >>B; if((A>=2 && A<=12) && (B>=2 && B<=12)){ if(A==B){ cout << "Draw" << endl; }else if(A<B){ cout << "Bob" << endl; }else if(A>B){ cout << "Alice" << endl; } }else if(A==1 && (B>=2 && B<=12)){ cout << "Alice" << endl; }else if((A>=2 && A<=...
a.cc: In function 'int main()': a.cc:26:2: error: expected '}' at end of input 26 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s518742135
p03803
C++
#include <iostream> using namespace std; int main(){ int A,B; cin>>A >>B; if (A==1){ A=14 } if (B==2){ B=14 } if (A==B){ cout<<"Draw"<<endl; return 0; } if(A>B){ cout<<"Alice"<<endl; } else{ cout<<"Bob"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: expected ';' before '}' token 7 | A=14 | ^ | ; 8 | } | ~ a.cc:10:16: error: expected ';' before '}' token 10 | B=14 | ^ | ; 11 | } | ~ ...
s515151822
p03803
Java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); if (A == B) { System.out.println("DRAW"); } else if (A == 1 && B >= 2 && B <= 13) { System.out...
Main.java:7: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s767014272
p03803
C++
package main import ( "fmt" ) func main(){ var a,b int fmt.Scan(&a, &b) if a == 1 { a = 14 } if b == 1 { b = 14 } if a == b { fmt.Println("Draw") } else if a > b { fmt.Println("Alice") } else { fmt.Println("Bob") } }
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~
s413221589
p03803
C++
#include<iostream> using namespace std; int main(void){ int A,B; cin>>A>>B; if(A==1) A=14; if(B==1) B=14; if(A>B){ cout<<"Alice"<<endl; } else if(A<B){ cout<<"Bob"<<endl; } else{ cour<<"Drow"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:15:5: error: 'cour' was not declared in this scope 15 | cour<<"Drow"<<endl; | ^~~~
s780610559
p03803
C++
#include<iostream> using namespace std; int main{ int A,B; cin>>A,B; if(A==1) A=14; if(B==1) B=14; if(A>B){ cout<<"Alice"<<endl; } else if(A<B){ cout<<"Bob"<<endl; } else{ cour<<"Drow"<<endl; } return 0; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:9: error: expected primary-expression before 'int' 4 | int A,B; | ^~~ a.cc:4:9: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc...
s408318042
p03803
C++
#include<iostream> using namespace std; int main{ int A,B; cin>>A,B; if(A==1) A=14; if(B==1) B=14; if(A>B){ cout<<"Alice"<<endl; }else if(A<B){ cout<<"Bob"<<endl; }else{ cour<<"Drow"<<endl; } return 0; }
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:9: error: expected primary-expression before 'int' 4 | int A,B; | ^~~ a.cc:4:9: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc...
s992167082
p03803
Java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int A =scan.nextInt(); int B =scan.nextInt(); if(A==1){ A=14; }else if(B==1){ B=14; } if(A>B){ System.out.println("Alice"); }else if(B>A){ System.out.println("Bob")...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s382453881
p03803
C++
import java.util.Scanner; public class Main{ public static void main(String[] args){ int a,b; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); if(a == b){ System.out.println("Draw"); }else if(a == 1){ System.out.println("Alice"); }else if(b == 1){ System.out.println("...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ 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{ | ^~~~~~
s195462898
p03803
Java
import java.util.Scanner; public class A_OneCardPoker { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); if(a == 1){ a=a+13; } if(b == 1){ b=b+13; } if(a == b) { System.out.println("Draw"); }else if(a > b) { ...
Main.java:3: error: class A_OneCardPoker is public, should be declared in a file named A_OneCardPoker.java public class A_OneCardPoker { ^ 1 error
s363022797
p03803
Java
import java.util.Scanner; public class Main054A { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == 1){ a =14; } if(b == 1){ b =14; } if(a == b ){ System.out.println("Draw"); }else if(a>b){ System.out.println("...
Main.java:2: error: class Main054A is public, should be declared in a file named Main054A.java public class Main054A { ^ 1 error
s477751398
p03803
Java
import java.util.Scanner; public class Main054A { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == b ){ System.out.println("draw"); }else if(a == 1){ System.out.println("Alice"); }else if(b == 1){ System.out.println("...
Main.java:2: error: class Main054A is public, should be declared in a file named Main054A.java public class Main054A { ^ 1 error
s215090631
p03803
C++
#include <iostream> #include <cstring> #include <stdio.h> #include <algorithm> #include <climits> using namespace std; int main(){ int a, b; cin>>a>>b; a>b?cout<<"Alice":a==b?"Draw":cout<<"Bob"; cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:12:31: error: operands to '?:' have different types 'const char [5]' and 'std::basic_ostream<char>' 12 | a>b?cout<<"Alice":a==b?"Draw":cout<<"Bob"; | ~~~~^~~~~~~~~~~~~~~~~~~
s848216182
p03803
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if( A == B ){ System.out.println("Draw"); } else if((A == 1 && B != 1)||( A > B )){ System.out.println("Alice"); } else if((A != 1 && B == 1)||( A...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s152435810
p03803
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(); if(A==1)A=14; if(B==1)B=14; if(A==B)System.out.println("Draw"); if(A>B)Sytem.out.println("Alice"); ...
Main.java:10: error: package Sytem does not exist if(A>B)Sytem.out.println("Alice"); ^ 1 error
s205426225
p03803
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Here your code ! Scanner sc = new Scanner(System.in); int A =sc.nextInt(); int B =sc.nextInt(); if(A==1)A=14; if(B==1)B=14; if(A==B)System.out.println("Draw"); ...
Main.java:12: error: package Sytem does not exist if(A>B)Sytem.out.println("Alice"); ^ 1 error
s436307202
p03803
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(); if(A==1){ A=14; } if(B==1){ B=14; } if(A < B){ System....
Main.java:15: error: cannot find symbol System.out.println(Bob); ^ symbol: variable Bob location: class Main Main.java:18: error: cannot find symbol System.out.println(Alice); ^ symbol: variable Alice location: class Main ...
s182988183
p03803
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(); if(A==1){ A=14; } if(B==1){ B=14; } if(A < B){ System....
Main.java:20: error: not a statement else(A = B){ ^ Main.java:20: error: ';' expected else(A = B){ ^ 2 errors
s031127672
p03803
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(); if(A==1){ A=14; } if(B==1){ B=14; } if(A < B){ System....
Main.java:17: error: ';' expected elseif(A > B){ ^ Main.java:20: error: not a statement else(A = B){ ^ Main.java:20: error: ';' expected else(A = B){ ^ Main.java:20: error: 'else' without 'if' else(A = B){ ^ Main.java:22: error:...
s500925211
p03803
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(); if(A==1){ A==14; } if(B==1){ B==14; } if(A < B){ Syste...
Main.java:9: error: not a statement A==14; ^ Main.java:12: error: not a statement B==14; ^ Main.java:17: error: ';' expected elseif(A > B){ ^ Main.java:20: error: not a statement else(A = B){ ^ Main.java:20: error: ';' ex...
s380836792
p03803
Java
public class ABC054_A { public static void main(String[] args){ int A=8,B=6; if(A>B){ System.out.println("Alice"); } else if(A==B){ System.out.println("Draw"); } else{ System.out.println("Bob"); } } }
Main.java:1: error: class ABC054_A is public, should be declared in a file named ABC054_A.java public class ABC054_A { ^ 1 error
s604239651
p03803
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(); if(A==1)A=14; if(B==1)B=14 if(A==B){System.out.println("Draw"); if(A>B){system.out.println("Alice"); if(B>A){system.out.println("Bob"); } }
Main.java:8: error: ';' expected if(B==1)B=14 ^ Main.java:13: error: reached end of file while parsing } ^ 2 errors
s078332952
p03803
C++
#include <bits/stdc++.h> #include<stdio.h> using namespace std; int main(){ int a[2]; for(int i=0;i<2;i++){ a[i]=scanf(); } if(a[1]>a[2]){ printf("Alice"); } else if(a[1]<a[2]){ printf("Bob"); } else{ printf("Draw"); } }
a.cc: In function 'int main()': a.cc:8:15: error: too few arguments to function 'int scanf(const char*, ...)' 8 | a[i]=scanf(); | ~~~~~^~ In file included from /usr/include/features.h:523, from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39, from /usr/...
s911905142
p03803
C++
#include <bits/stdc++.h> #include<stdio> using namespace std; int main(){ int a[2]; for(int i=0;i<2;i++){ a[i]=scanf(); } if(a[1]>a[2]){ printf("Alice"); } else if(a[1]<a[2]){ printf("Bob"); } else{ printf("Draw"); } }
a.cc:2:9: fatal error: stdio: No such file or directory 2 | #include<stdio> | ^~~~~~~ compilation terminated.
s546365083
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a[2]; a=scanf(); if(a[1]>a[2]){ printf("Alice"); } else if(a[1]<a[2]){ printf("Bob"); } else{ printf("Draw"); } }
a.cc: In function 'int main()': a.cc:6:10: error: too few arguments to function 'int scanf(const char*, ...)' 6 | a=scanf(); | ~~~~~^~ In file included from /usr/include/features.h:523, from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39, from /usr/include/x8...
s559889425
p03803
Java
import java.util.*; public class A_054 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A=sc.nextInt(), B=sc.nextInt(); if(A==1){ A=14; } if(B==1){ B=14; } if(A>B){ System.out.println("Alice"); } else if(B>A)...
Main.java:2: error: class A_054 is public, should be declared in a file named A_054.java public class A_054 { ^ 1 error
s657011054
p03803
C
int main(int argc, const char * argv[]) { int A,B; scanf("%d\n",&A); scanf("%d\n",&B); if(A==1&&B!=1){ printf("Alice\n"); } else if(A!=1&&B==1){ printf("Bob\n"); } else if(A>B){ printf("Alice\n"); } else if(B>A){ printf("Bob\n"); } ...
main.c: In function 'main': main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d\n",&A); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(int argc, const char * argv[]) {...
s568448234
p03803
C
int main(int argc, const char * argv[]) { int A,B; scanf("%d\n",&A); scanf("%d\n",&B); if(A==1&&B!=1){ printf("Alice\n"); } else if(A!=1&&B==1){ printf("Bob\n"); } else if(A>B){ printf("Alice\n"); } else if(B>A){ printf("Bob\n"); } ...
main.c: In function 'main': main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d\n",&A); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(int argc, const char * argv[]) {...
s582226731
p03803
C++
int main(int argc, const char * argv[]) { int A,B; scanf("%d\n",&A); scanf("%d\n",&B); if(A==1&&B!=1){ printf("Alice\n"); } else if(A!=1&&B==1){ printf("Bob\n"); } else if(A>B){ printf("Alice\n"); } else if(B>A){ printf("Bob\n"); } ...
a.cc: In function 'int main(int, const char**)': a.cc:3:5: error: 'scanf' was not declared in this scope 3 | scanf("%d\n",&A); | ^~~~~ a.cc:7:9: error: 'printf' was not declared in this scope 7 | printf("Alice\n"); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstd...
s527385636
p03803
C++
#!/usr/bin/env python3 if __name__ == '__main__': l = list([-1,100]) for i in range(2,14): l.append(i) # for i in range(1,14): # print(i, l[i]) s = str(input()).split(" ") a = int(s[0]) b = int(s[1]) if l[a] > l[b]: print("Alice") elif l[a] < l[b]: print("Bob") else: print("Draw")
a.cc:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/env python3 | ^ a.cc:2:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 2 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:6:5: error: invalid preprocessing directive #for 6 | #...
s353308595
p03803
C++
fwrfうぇf
a.cc:1:1: error: '\U0000ff46\U0000ff57\U0000ff52\U0000ff46\U00003046\U00003047\U0000ff46' does not name a type 1 | fwrfうぇf | ^~~~~~~~~~~~~~
s445220629
p03803
Java
import java.util.Scanner;   class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int a=sc.nextInt(); if(a==1) a+=13; int b=sc.nextInt(); if(b==1) b+=13; if(a>b) System.out.println("Alice"); else if(a<b) System.out.println("Bob"); else System.ou...
Main.java:2: error: illegal character: '\u00a0' ? ^ Main.java:3: error: class, interface, enum, or record expected class Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnam...
s605180963
p03803
Java
import java.util.Scanner;   class Main{ public static void main(String[] args) { Scanner input=new Scanner(System.in); while(sc.hasNext()){ int a=input.nextInt(); if(a==1) a+=13; int b=input.nextInt(); if(b==1) b+=13; if(a>b) System.out.println("Alice"); else if(a<b) System.out.println("Bob"); else ...
Main.java:2: error: illegal character: '\u00a0' ? ^ Main.java:3: error: class, interface, enum, or record expected class Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnam...
s462380778
p03803
Java
import java.util.Scanner;   public class Main {   public static void main(String[] args) { Scanner input = new Scanner(System.in); int a = input.nextInt(); int b = input.nextInt(); if(a == 1) a += 13; if(b == 1) b += 13; if(a > b) System.out.println("Allice"); else if(b > a) System.out....
Main.java:2: error: illegal character: '\u00a0' ? ^ Main.java:4: error: illegal character: '\u00a0' ? ^ Main.java:19: error: illegal character: '\u00a0' ? ^ Main.java:20: error: reached end of file while parsing } ^ 4 errors
s759918787
p03803
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int a = input.nextInt(); int b = input.nextInt(); if(a == 1) a += 13; if(b == 1) b += 13; if(a > b) System.out.println("Allice"); else if(b > a) System.out.pr...
Main.java:15: error: cannot find symbol input1.close(); ^ symbol: variable input1 location: class Main 1 error
s817608876
p03803
C
#include <stdio.h>   int main(void){   int a,b;   scanf("%d %d",&a,&b); if(a==1) a+=30; if(b==1) b+=30;   if(a==b) printf("Draw\n"); else if(a>b) printf("Alice\n"); else printf("Bob\n");   return 0;   }
main.c:2:1: error: stray '\302' in program 2 | <U+00A0> | ^~~~~~~~ main.c: In function 'main': main.c:4:1: error: stray '\302' in program 4 | <U+00A0> | ^~~~~~~~ main.c:6:1: error: stray '\302' in program 6 | <U+00A0> | ^~~~~~~~ main.c:11:1: error: stray '\302' in program 11 | <U+00A0> ...
s886062074
p03803
C
#include <stdio.h> int main(void){ int a,b; scanf("%d %d", &a, &b); if(a == 1) a+= 13; if(b == 1) b+= 13; if(a == b) printf("Drow\n); else if(a > b) printf("Alice\n); else printf("Bob\n); return 0; }
main.c: In function 'main': main.c:10:23: warning: missing terminating " character 10 | if(a == b) printf("Drow\n); | ^ main.c:10:23: error: missing terminating " character 10 | if(a == b) printf("Drow\n); | ^~~~~~~~~ main.c:11:5: error: expected exp...
s815430087
p03803
C
#include <stdio.h>   int main(void){   int a,b;   scanf("%d %d",&a,&b); if(a==1) a+=30; if(b==1) b+=30;   if(a==b) printf("Draw\n"); else if(a>b) printf("Alice\n"); else printf("Bob\n");   return 0;   }
main.c:2:1: error: stray '\302' in program 2 | <U+00A0> | ^~~~~~~~ main.c: In function 'main': main.c:4:1: error: stray '\302' in program 4 | <U+00A0> | ^~~~~~~~ main.c:6:1: error: stray '\302' in program 6 | <U+00A0> | ^~~~~~~~ main.c:11:1: error: stray '\302' in program 11 | <U+00A0> ...
s045209345
p03803
C
#include<stdio.h> int main(void){ int alice, bob; do{ scanf("%d %d", alice, bob); } while(1<= alice && alice <= 13 && 1<= bob && bob <= 13); if(alice == 1){ if(bob == 1) printf("Drow\n"); printf("Alice\n"); } if(alice > 1 && bob >1){ if(alice == bob) printf("Drow\n"); else if(alice ...
main.c: In function 'main': main.c:18:25: error: expected ';' before '}' token 18 | else printf("Bob\n") | ^ | ; 19 | } | ~
s215273406
p03803
C++
#include<iosrteam> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b)cout<<"Alice"<<endl; else if(a==b)cout<<"draw"<<endl; else cout<<"Bob"<<endl; return 0; }
a.cc:1:9: fatal error: iosrteam: No such file or directory 1 | #include<iosrteam> | ^~~~~~~~~~ compilation terminated.
s834921053
p03803
C++
#include <iostream> using namespace std; const int max = 8; bool graph[max][max]; int dfs(int v, int N, bool visited[max]) { bool all_visited = true; for (int i = 0; i < N; ++i) { if (visited[i] == false) all_visited = false; } if (all_visited) { return 1; } int ret = 0; for (int i = 0; i < N; i++)...
a.cc:5:12: error: reference to 'max' is ambiguous 5 | bool graph[max][max]; | ^~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include...
s601941342
p03803
C++
#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; for(){} if(a==1)a=14; if(b==1)b=14; if(a==b){ cout<<"Draw"; } else if(a>b){ cout<<"Alice"; }else{ cout<<"Bob"; } }
a.cc: In function 'int main()': a.cc:6:5: error: expected primary-expression before ')' token 6 | for(){} | ^ a.cc:7:9: error: expected primary-expression before 'if' 7 | if(a==1)a=14; | ^~ a.cc:6:8: error: expected ';' before 'if' 6 | for(){} | ^ | ...
s339412662
p03803
C++
#include <studio.h> int main(void) { int a,b; scanf("%d%d",&a,&b); if(a==b) printf("Draw"); else if(a==2)printf("Alice"); else if(b==2)printf("Bob"); else if(a<b)printf("Bob"); else if(a>b)printf("Alice"); return 0; }
a.cc:1:10: fatal error: studio.h: No such file or directory 1 | #include <studio.h> | ^~~~~~~~~~ compilation terminated.
s836282140
p03803
C++
#include<cstdio> using namespace std; int main(){ int a, b; scanf("%d %d", &a, &b); if(a == 1)a = 14; if(b == 1)b = 14; if(a < b) printf("Bob\n"); else if(a > b) printf("Alice\n"); else printf("Draw\n"); retun 0; }
a.cc: In function 'int main()': a.cc:18:1: error: 'retun' was not declared in this scope 18 | retun 0; | ^~~~~
s550362372
p03803
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a==b)cout << "Draw\n"; else { if (a=1) cout << "Alice\n"; if else (b=1) cout << "Bob\n"; if else (a>b) cout << "Alice\n"; if else (b>a) cout << "Bob\n"; } // your code goes here return 0; }
a.cc: In function 'int main()': a.cc:11:20: error: expected '(' before 'else' 11 | if else (b=1) cout << "Bob\n"; | ^~~~ | ( a.cc:12:20: error: expected '(' before 'else' 12 | if else (a>b) cout << "Alice\n"; | ...
s394462247
p03803
C++
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { int A, B; int a, b; printf("A and B?\n"); scanf_s("%d %d", &A, &B); a = (A - 1); b = (B - 1); if (a*b == 0) { if ((a == 0) && (b == 0)) { printf("Draw"); } else if ((a == 0) && (b != 0)) { printf("Alice"); } else if ((a != 0) ...
a.cc: In function 'int main()': a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 10 | scanf_s("%d %d", &A, &B); | ^~~~~~~ | scanf
s972102234
p03803
C++
#include<stdio.h> #include<stdio.h> #include<math.h> #include<time.h> #include<Windows.h> int main() { int A, B; printf("A and B?"); scanf("%d %d", &A, &B); if (A > B) { printf("Alice"); } else if (B > A) { printf("Bob"); } else if (A == B) { printf("Draw"); } return(0); }
a.cc:5:9: fatal error: Windows.h: No such file or directory 5 | #include<Windows.h> | ^~~~~~~~~~~ compilation terminated.
s637705491
p03803
C++
1 #include <iostream> 2 3 using namespace std; 4 5 int main (){ 6 int A,B; 7 cin >> A >> B; 8 A-=1; 9 B-=1; 0 if(A==0){ ...
a.cc:1:3: error: stray '#' in program 1 | 1 #include <iostream> | ^ a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 1 #include <iostream> | ^ a.cc:4:1: error: expected unqualified-id before numeric constant 4 | 4 | ^
s874549847
p03803
C++
#include<string> #include<iostream> #include<algorithm> #include<set> #include<map> #include<stack> #include<unordered_set> #include<math.h> #include<vector> #include<sstream> #include<queue> #include<functional> #include<bitset> #include<cstdio> #include<iomanip> #include <cstring> #include <climits> using namespace s...
a.cc: In function 'int main()': a.cc:25:41: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 25 | else if (a < b) { cout << "Bob" << end; } | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/...
s086969617
p03803
C++
#include<iostream> #include<vector> #include<string> #include<array> #include<algorithm> #include<list> #include<cmath> #include<iomanip> #include<queue> #include<functional> #include<climits> #include<iterator> #include<unordered_set> #include<unordered_map> ...
a.cc:34:21: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 34 | if(A>B){C = 'Alice'; | ^~~~~~~ a.cc:35:29: warning: multi-character character constant [-Wmultichar] 35 | if(A<B) C = 'Bob'; | ^~~~~...
s970392259
p03803
C++
#include<iostream> #include<vector> #include<string> #include<array> #include<algorithm> #include<list> #include<cmath> #include<iomanip> #include<queue> #include<functional> #include<climits> #include<iterator> #include<unordered_set> #include<unordered_map> ...
a.cc: In function 'int main()': a.cc:30:16: error: 'A' was not declared in this scope 30 | cin >> A >> B ; | ^ a.cc:30:21: error: 'B' was not declared in this scope 30 | cin >> A >> B ; | ^ a.cc:44:6: error: expected '}' at end of input 44 | } ...
s717019011
p03803
C++
#include<iostream> using namespace std; int main(){ int A,B; cin >> A >> B; if (A>B) cout << "Alice" << endl; else if (A==B) out << "Draw" << endl; else cout << "Bob" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: 'out' was not declared in this scope 8 | else if (A==B) out << "Draw" << endl; | ^~~
s592872346
p03803
C++
#include<iostream> using namespace std; int main(void) { int A, B; cin >> A >> B; if(A==1)A=14; if(B==1)B=14; if(A>B){ cout << "Alice"<<endl; }else if(B>A){ cout << "Bob"<<endl; }else{ cout << "Dr...
a.cc:22:2: error: expected class-name at end of input 22 | ~ | ^
s106617768
p03803
C++
#include<iostream> int main(){ int a, b; cin >> a >> b; if(a > b){ cout << "Alice" << endl; } if(a < b){ cout << "Bob" << endl; } if(a == b){ cout << "Draw" << endl; } }
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; | ^~~ | 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; ///< Li...
s916680030
p03803
C++
#include<iostream> using namespace std; int A, B; int main(){ scanf("%d %d", &A, &B); // scanf("%d\n", B); if (A == 1){ if (B == 1){ printf("%s\n", "Draw"); }else{ printf("%s\n", "Alice"); } } if (B == 1 && A !== 1){ printf("%s\n", "Bob"); } if (A !== 1 && B !== 1){ if (A ...
a.cc: In function 'int main()': a.cc:16:21: error: expected primary-expression before '=' token 16 | if (B == 1 && A !== 1){ | ^ a.cc:19:11: error: expected primary-expression before '=' token 19 | if (A !== 1 && B !== 1){ | ^ a.cc:19:22: error: expected primary-expre...
s336942977
p03803
C++
if(A > B): print("Alice") elif(B > A): print("Bob") else: print("Draw")
a.cc:1:1: error: expected unqualified-id before 'if' 1 | if(A > B): | ^~
s908548167
p03803
C
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a==0 || b==0){ printf("UnderRange"); }else if(a>13 || b >13){ printf("OverRange") }else if(a==b){ printf("Draw"); }else if(a<b){ printf("Alice"); }else{ printf("Bob") } return 0; }
main.c: In function 'main': main.c:11:36: error: expected ';' before '}' token 11 | printf("OverRange") | ^ | ; 12 | }else if(a==b){ | ~ main.c:17:30: error: expected ...
s887447348
p03803
Java
import java.io.*; import java.util.*; public class Testy { public static void main(String[] args) { Scanner in = new Scanner(System.in); int Alice = in.nextInt(); int Bob = in.nextInt(); System.out.println(Alice == Bob ? "Draw" : Alice == 1 ? "Alice" : Bob == 1 ? "Bob" : Alice > Bob ? "Alice" : "Bob"); } }
Main.java:3: error: class Testy is public, should be declared in a file named Testy.java public class Testy { ^ 1 error
s293822944
p03803
Java
public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a == b) { System.out.println("Draw"); } else if ((a > b...
Main.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s585789685
p03803
C++
#include <iostream> using namespace std; int n,m,c; string a[55],b[55]; int main() { int i,j,k,l; cin>>n>>m; for(i=0; i<n; i++) cin>>a[i]; for(i=0; i<m; i++) cin>>b[i]; for(i=0; i=<n-m; i++) for(j=0; j<=n-m; j++) { c = 0; for(k=0; k<m; k++) for(l=0; l<m; l++) if(a[i+k][j+l] == b[k][l]) c++; if(c == ...
a.cc: In function 'int main()': a.cc:10:20: error: expected primary-expression before '<' token 10 | for(i=0; i=<n-m; i++) | ^
s772332200
p03803
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, b, e) for(int i = (int)(b); i < (int)(e); i++) #define rep(i, n) REP(i, 0, n) #define fi first #define se second #define pb push_back typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; int main(){ int a, b; cin>>a>>b; a -= 1; ...
a.cc: In function 'int main()': a.cc:24:32: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 24 | if(a > b) cout<<"Alice"<endl; | ~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/regex:68, ...
s560883364
p03803
Java
import java.io.*; import java.util.*; public class OneCardPoker extends Main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int A = s.nextInt(); int B = s.nextInt(); if (A == B) { System.out.println("Draw"); } else if (A == 1) { System.out.println("Alice"); } else...
Main.java:4: error: class OneCardPoker is public, should be declared in a file named OneCardPoker.java public class OneCardPoker extends Main{ ^ Main.java:4: error: cannot access Main public class OneCardPoker extends Main{ ^ bad source file: ./Main.java file does not cont...