submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s129389893
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B; if(A=>2&&B=>2){ if(A>B){ cout << "Alice" << endl; } else if(A==B){ cout << "Draw" << endl; } else{ cout << "Bob" << endl; } } else if(A==1){ if(B==1){ cout << "Draw" << endl; } els...
a.cc: In function 'int main()': a.cc:7:8: error: expected primary-expression before '>' token 7 | if(A=>2&&B=>2){ | ^ a.cc:7:14: error: expected primary-expression before '>' token 7 | if(A=>2&&B=>2){ | ^
s585168423
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B; if(A>=2&&>=2){ if(A>B){ cout << "Alice" << endl; } else if(A==B){ cout << "Draw" << endl; } else{ cout << "Bob" << endl; } } else if(A==1){ if(B==1){ cout <<< "Draw" << endl; } els...
a.cc: In function 'int main()': a.cc:7:12: error: expected primary-expression before '>=' token 7 | if(A>=2&&>=2){ | ^~ a.cc:20:14: error: expected primary-expression before '<' token 20 | cout <<< "Draw" << endl; | ^ a.cc:20:23: error: invalid operands of types 'const...
s029116156
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B; if(A=>2&&B=>2){ if(A>B){ cout << "Alice" << endl; } else if(A==B){ cout << "Draw" << endl; } else{ cout << "Bob" << endl; } } else if(A==1){ if(B==1){ cout <<< "Draw" << endl; } el...
a.cc: In function 'int main()': a.cc:7:8: error: expected primary-expression before '>' token 7 | if(A=>2&&B=>2){ | ^ a.cc:7:14: error: expected primary-expression before '>' token 7 | if(A=>2&&B=>2){ | ^ a.cc:20:14: error: expected primary-expression before '<' token 20 |...
s573413081
p03803
C++
#include<bits/stdc++.h> #include<algorithm> using namespace std; #define rep(i,a,b) for(int i=a;i<=b;i++) #define revp(i,a,b) for(int i=b;i>=a;i--) int a,b; int main() { cin>>a>>b; if(a>b and b!=1 || a==1) cout<<"Alice"; else if(b>a and a!=1 || b==1) cout<<"Bob"; else if(a==b)...
a.cc: In function 'int main()': a.cc:21:1: error: expected primary-expression before '}' token 21 | } | ^
s014943453
p03803
C++
#include <bits/stdc++.h> #define int long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define DEC(i, a, b) for (int i = (a); i > (b); --i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define pb push_back #define ALL(obj) (obj).begin(), (obj).end() #define debug(x) cerr << #x << ": " << x << '\n' using...
a.cc: In function 'int main()': a.cc:24:13: error: no match for 'operator>' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'long long int') 24 | cout << a > b ? "Alice" : (a < b ? "Bob" : "Draw"); | ~~~~~~~~~ ^ ~ | | | | | ...
s170543346
p03803
C++
#include <bits/stdc++.h> #define int long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define DEC(i, a, b) for (int i = (a); i > (b); --i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define pb push_back #define ALL(obj) (obj).begin(), (obj).end() #define debug(x) cerr << #x << ": " << x << '\n' using...
a.cc: In function 'int main()': a.cc:24:13: error: no match for 'operator>' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'long long int') 24 | cout << a > b ? "Alice" : (a < b) ? "Bob" : "Draw"; | ~~~~~~~~~ ^ ~ | | | | | ...
s248238375
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>b){ System.out.println("Alice"); }else if(a==b){ System.out.println("Draw"); }el...
Main.java:15: error: reached end of file while parsing } ^ 1 error
s169827176
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>b){ System.out.println("Alice"); }else if(a==b){ System.out.println("Draw"); }el...
Main.java:15: error: reached end of file while parsing } ^ 1 error
s862706469
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; if(A>B && A!=2){ cout<<"Alice"<<endl; } else if(A==2 &&B!=2){ cout<<"Bob"<<endl; } else if(A!=2 &&B==2){ cout<<"Alice"<<endl; } else if(B>A &&B!=2){ cout<<"Bob"<<endl; } else if(A==B){ cout<<"Dra...
a.cc: In function 'int main()': a.cc:21:19: error: expected primary-expression before '<' token 21 | cout<<"Draw"<<<endl; | ^
s066277561
p03803
C++
a,b=map(int,input().split()) if a==b: print("Draw") elif a==1 or (a>b and b!=1): print("Alice") else: print("Bob")
a.cc:1:1: error: 'a' does not name a type 1 | a,b=map(int,input().split()) | ^
s155747853
p03803
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF 1e9 #define PI 3.14159265359 #define MOD 1000000007 #define ALL(v) v.begin(),v.end() #define ALLR(v) v.rbegin(),v.rend() typedef long long ll; const int dx[4] = {1,0,-1,0}; const int dy[4] = {0,1,0,-1}; //isPr...
a.cc: In function 'int main()': a.cc:20:17: error: expected ';' before 'if' 20 | if(b==1) b+=13 | ^ | ; 21 | if(a==b){ | ~~
s379729654
p03803
C++
A, B = list(map(int, input().split())) if A == 1: A = 14 if B == 1: B = 14 if A > B: print("Alice") elif A == B: print("Draw") else: print("Bob")
a.cc:1:1: error: 'A' does not name a type 1 | A, B = list(map(int, input().split())) | ^
s703328832
p03803
C++
#include <bits/stdc++.h> int main(){ int a,b; std::cin>>a>>b; a=a==1?14:a; b=b==1?14:b; std::string str[3] = {"Alice", "Drow", "Bob"}; std::string* ans = &str[1]; std::cout<<ans[a<=>b] << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:9:23: error: expected primary-expression before '>' token 9 | std::cout<<ans[a<=>b] << std::endl; | ^
s609984324
p03803
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < (int)(n); ++i) using P = pair<int,int>; using ll = long long; static const int INF = 1000000000; static const ll MOD = 1000000007; ll gcd(ll a, ll b){return b!=0 ? gcd(b, a%b) : a;} ll lcm(ll a, ll b){return a / gcd(a, b) * b;} int main...
a.cc: In function 'int main()': a.cc:13:18: error: structured binding declaration cannot have type 'const int' 13 | const int[] card = {13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; | ^~ a.cc:13:18: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:13:18: er...
s087274699
p03803
C++
#include <bits/stdc++.h> main() { int64_t a, b; cin >> a >> b; a = (a + 11) % 13; b = (b + 11) % 13; if (a > b) { cout << "Alice" << endl; } else if (a < b) { cout << "Bob" << endl; } else { cout << "Draw" << endl; } }
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main() { | ^~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >> b; | ^~~ | std::cin In file included from /usr/include...
s803948651
p03803
C
#inlcude <stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if (a == 1 || b == 1) { if (a == 1 && b != 1) printf("Alice"); else if (a != 1 && b == 1) printf("Bob"); else printf("Draw"); } if (a > b) printf("Alice"); else if (b > a) printf("Bob"); else printf...
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | scanf("%d%d",&a,&b); | ^~~~~ main.c...
s612656587
p03803
C++
#inlcude <stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if (a == 1 || b == 1) { if (a == 1 && b != 1) printf("Alice"); else if (a != 1 && b == 1) printf("Bob"); else printf("Draw"); } if (a > b) printf("Alice"); else if (b > a) printf("Bob"); else printf(...
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude <stdio.h> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'scanf' was not declared in this scope 6 | scanf("%d%d",&a,&b); | ^~~~~ a.cc:10:7: error: 'printf' was not declare...
s872310138
p03803
Java
import java.util.Scanner; public class practice{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int A=scan.nextInt(); int B=scan.nextInt(); if(A>B){ System.out.println("Alice"); } else if(A<B){ System.out.println("...
Main.java:2: error: class practice is public, should be declared in a file named practice.java public class practice{ ^ 1 error
s002052021
p03803
C
import java.util.Scanner; public class practice{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int A=scan.nextInt(); int B=scan.nextInt(); if(A>B){ System.out.println("Alice"); } else if(A<B){ System.out.println("...
main.c:1:1: error: unknown type name 'import' 1 | import java.util.Scanner; | ^~~~~~ main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | import java.util.Scanner; | ^ main.c:2:1: error: unknown type name 'public' 2 | public class practice{ |...
s381079228
p03803
C++
#include <bits/stdc++.h> using namespace std; using ll=long long; const ll MOD=1000000007; int main() { int a,b; cin >> a >> b; if(a==b) cout << "Draw" << endl; else if(a!=1&&b!=1){ if(a<b) cout << "Bob" << endl; else cout << "Alice" << endl; } else{ if(a==1){ cout << "Al...
a.cc: In function 'int main()': a.cc:24:2: error: expected '}' at end of input 24 | } | ^ a.cc:7:12: note: to match this '{' 7 | int main() { | ^
s149555886
p03803
C
#include<stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); if(a==b) printf("Draw"); else if(a==1) printf("Alice"); else if(b==1) printf("Bob"); else if(a>b) printf("Alice") else if(a<b) printf("Bob") return 0; }
main.c: In function 'main': main.c:12:20: error: expected ';' before 'else' 12 | printf("Alice") | ^ | ; 13 | else if(a<b) | ~~~~
s551694841
p03803
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a < b) cout << "Bob"; else if (a == b) cout << "Draw"; else if (a > b) cout << "Alice" else if (a == 1) cout << "Alice"; else if (b == 1) cout << "Bob"; }
a.cc: In function 'int main()': a.cc:13:24: error: expected ';' before 'else' 13 | cout << "Alice" | ^ | ; 14 | else if (a == 1) | ~~~~
s008452380
p03803
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a < b) cout << "Bob"; else if (a == b) cout << "Draw" else cout << "Alice" }
a.cc: In function 'int main()': a.cc:11:23: error: expected ';' before 'else' 11 | cout << "Draw" | ^ | ; 12 | else | ~~~~
s298927984
p03803
C++
#include <iostream> using namespace std;{ int = A, B sin( A , B ) if( A = B ) cout ("Draw") else if ( A = 1 ) cout ("Alice") else if ( B = 1 ) cout ("Bob") else if ( A > B ) cout ("Alice") else if ( A < B ) cout ("Bob") return;0}
a.cc:3:22: error: expected unqualified-id before '{' token 3 | using namespace std;{ | ^
s323081977
p03803
C++
#include<iostream> using namespace std; int main(){ char a,b; cin>>a>>b; a-=130; b-=130; cout<<(a==b?”Draw”:a>b?”Alice”:”Bob”); }
a.cc:8:13: error: extended character ” is not valid in an identifier 8 | cout<<(a==b?”Draw”:a>b?”Alice”:”Bob”); | ^ a.cc:8:13: error: extended character ” is not valid in an identifier a.cc:8:24: error: extended character ” is not valid in an identifier 8 | cout<<(a==b?”Draw”:a>b?”Alice”:”Bob”...
s349040631
p03803
C++
#include<bits/stdc+.h> using namespace std; int main(){ char a,b; cin>>a>>b; a-=130; b-=130; cout<<(a==b?”Draw”:a>b?”Alice”:”Bob”); }
a.cc:1:9: fatal error: bits/stdc+.h: No such file or directory 1 | #include<bits/stdc+.h> | ^~~~~~~~~~~~~~ compilation terminated.
s320842373
p03803
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,c) for(int i=0;i<c;++i) int main(){ int a,b; cin >> a>> b; int e = min(a,b); if(e==a&&a!=1&&a!=b){ cout << "Bob" << endl; }else if(e==b&&b!=1&&a!=b){ cout << "Alice" << endl; }else if(a==b){ cout << "Draw" << endl; }else if(e==a&&a==1&&a!=b){ c...
a.cc: In function 'int main()': a.cc:18:2: error: expected '}' at end of input 18 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s292124506
p03803
C++
#include <bits/stdc++.h> #include <math.h> #define REP(i, n) for(int i = 0; i < (n); i++) #define ALL(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; const int mINF = -1001001001; int main() { int a,b; cin >> a >> b; if(a==1) a+=13; if(b==1) a...
a.cc: In function 'int main()': a.cc:20:3: warning: capture of variable 'std::cout' with non-automatic storage duration 20 | cout << "Bob" << endl; | ^~~~ 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:63:18: note: 's...
s712516309
p03803
C++
#include<iostream> using namespace std; int main () { int a,b; cin>>a>>b; if(b==1) b=14; if(a==1) a=14; if(a>b) cout<<"Alice"; else if(a==b) cout<<"Draw"; else cout<<"Bob"; return 0; } #include<iostream> using namespace std; int main () { int a,b; cin>>a>>b; if(b==1) b=14; if(a==1) a=14; if(a>b) co...
a.cc:18:3: error: stray '#' in program 18 | } #include<iostream> | ^ a.cc:18:4: error: 'include' does not name a type 18 | } #include<iostream> | ^~~~~~~ a.cc:20:5: error: redefinition of 'int main()' 20 | int main () | ^~~~ a.cc:3:5: note: 'int main()' previously defined here 3 ...
s794766485
p03803
C++
using namespace std; int main () { int a,b; cin>>a>>b; if(b==1) b=14; if(a==1) a=14; if(a>b) cout<<"Alice"; else if(a==b) cout<<"Draw"; else cout<<"Bob"; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin>>a>>b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:11:9: ...
s017616795
p03803
C++
using namespace std; int main() { int A, B; cin >> A >> B; if (A == 1) { A += 13; } if(B ==1) { B +=13; } if(A > B) cout << "ALice"; if(A == B) cout << "Draw"; else cout << "Bob"; return 0; }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin >> A >> B; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:16:1: error: 'cout...
s021532983
p03803
C++
#include<iostream> #include<stdio.h> //#include <bits/stdc++.h> #include<vector> #include<float.h> #include<iomanip> #include<algorithm> #include<string> #include<cstring> #include<math.h> #include<cmath> #include<sstream> #include<set> #include<map> #include<queue> #include <cassert> #include <cmath> #include<cstdint>...
a.cc: In function 'int main()': a.cc:45:25: error: expected ';' before 'else' 45 | if(a==b)cout<<"Draw" | ^ | ; 46 | else cout<<(a>b?"Alice":"Bob"); | ~~~~
s875628687
p03803
Java
import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ab[] = new int[2]; ab[0] = sc.nextInt(); ab[1] = sc.nex...
Main.java:22: error: cannot find symbol }else if(b[0] < ab[1]){ ^ symbol: variable b location: class Main 1 error
s444717171
p03803
Java
import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ab[] = new int[2]; ab[0] = sc.nextInt(); ab[1] = sc.nex...
Main.java:22: error: cannot find symbol }else if(b[0] < ab[1]){ ^ symbol: variable b location: class Main 1 error
s843731333
p03803
C++
#include <iostream> using namespace std; int main(){ int a,b; string[] s = {"Draw","Alice","Bob"}; cin >> a >> b; if(a == b){ cout << s[0]; }else if((a > b && b != 1) || a == 1){ cout << s[1]; }else{ cout << s[2]; } return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'} 5 | string[] s = {"Draw","Alice","Bob"}; | ^~ a.cc:5:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' a.cc:5:9: error: ...
s737193603
p03803
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for(ll i = 0; i < (ll)(n); i++) #define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++) #define memi cout << endl #define kono(n) cout << fixed << setprecision(n) #define all(c) (c).begin(), (c).end() #define pb push_back #define hina c...
a.cc: In function 'int main()': a.cc:25:9: error: 'Bob' was not declared in this scope 25 | out(Bob); | ^~~ a.cc:14:24: note: in definition of macro 'out' 14 | #define out(n) cout << n | ^ a.cc:27:9: error: 'Draw' was not declared in this scope 27 | out(Draw);...
s553214268
p03803
C++
#include <iostream> using namespace std; int main() { int n,m; cin>>n>>m; if(n==1) { n=h; } if(m==1) { m=h; } if(n==m) { cout<<"Draw"; } else if(n<m) { cout<<"Bob"; } else { cout<<"Alice"; ...
a.cc: In function 'int main()': a.cc:9:12: error: 'h' was not declared in this scope 9 | n=h; | ^ a.cc:13:12: error: 'h' was not declared in this scope 13 | m=h; | ^
s533643857
p03803
C++
using namespace std; int main() { int alice_card , bob_card; cin>>alice_card>>bob_card; //inr arr[13]={1,13,12,11,10,9,8,7,6,5,4,3,2}; if(alice_card==bob_card){ cout<<"draw"; }else if(alice_card==1 &&alice_card!=bob_card ){ cout<<"alice"; }else if (bob_card==1 &&alice_card!=bob_card ||bob_card>alice_card){ cout<<"...
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin>>alice_card>>bob_card; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:9:5: e...
s229922464
p03803
C++
using namespace std; int main() { int alice_card , bob_card; cin>>alice_card>>bob_card; //inr arr[13]={1,13,12,11,10,9,8,7,6,5,4,3,2}; if(alice_card==bob_card){ cout<<"draw"; }else if(alice_card==1 &&alice_card!=bob_card ){ cout<<"alice"; }else if (bob_card==1 &&alice_card!=bob_card ||bob_card>alice_card){ cout<<"...
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin>>alice_card>>bob_card; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:9:5: e...
s218296079
p03803
C++
#include <iostream> using namespace std; int main() { int a , b; cin>> a>> b; if(a==1 && b!=1) { cout<<"Alice"; } else if (b==1 && a!=1) { cout<<"Bob"; } else if (a>=2 && a<=13 && b>=2&&b<=13 && a>b) { cout<<"Alice"; } else if (b>=2 && b<=1...
a.cc: In function 'int main()': a.cc:25:6: error: expected '}' at end of input 25 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s845732837
p03803
C++
using namespace std; int main() { int a , b; cin>> a>> b; if(a==1 && b!=1) { cout<<"Alice"; } else if (b==1 && a!=1) { cout<<"Bob"; } else if (a>=2 && a<=13 && b>=2&&b<=13 && a>b) { cout<<"Alice"; } else if (b>=2 && b<=13 && a>=2&&b<=13 && b...
a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope 7 | cin>> a>> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:10:9: error:...
s524703323
p03803
C
#include <stdio.h> int main(void) { int a, b; if(scanf("%d", &a) == 1 && scanf("%d", &b) == 1) { if(a == b) { printf("Draw"); } else if(a != 1 && b != 1) { else if(a > b) { printf("Alice"); } else if(b > a) { printf("Bob"); } } else { if(a == 1) { printf("Alice"); } el...
main.c: In function 'main': main.c:12:25: error: expected '}' before 'else' 12 | else if(a > b) { | ^~~~ main.c: At top level: main.c:28:9: error: expected identifier or '(' before 'return' 28 | return 0; | ^~~~~~ main.c:29:1: error: expe...
s961045693
p03803
C
#include <stdio.h> int main(void) { int a, b; if(scanf("%d", &a) == 1 && scanf("%d", &b) == 1) { if(a == b) { printf("Draw"); } else { if(a == 1) { printf("Alice"); break; } else if(b == 1) { printf("Alice"); break; } else if(a > b) { printf("Alice"); } else if(b >...
main.c: In function 'main': main.c:14:33: error: break statement not within loop or switch 14 | break; | ^~~~~ main.c:18:33: error: break statement not within loop or switch 18 | break; | ...
s249267411
p03803
C
#include <stdio.h> int main(void) { int a, b; if(scanf("%d%d", &a, &b)) == 1) { if(a == b) { printf("Draw"); } else { if(a == 1 || a > b) { printf("Alice"); } else if(b == 1 || b > a) { printf("Bob"); } } } return 0; }
main.c: In function 'main': main.c:7:35: error: expected expression before '==' token 7 | if(scanf("%d%d", &a, &b)) == 1) { | ^~ main.c:7:39: error: expected statement before ')' token 7 | if(scanf("%d%d", &a, &b)) == 1) { | ...
s925969774
p03803
C
#include <stdio.h> int main(void) { int a, b; scanf("%d%d", &a, &b); if(a == b) [ printf("Draw"); } else { if(a == 1 || a > b) { printf("Alice"); } else if(b == 1 || b > a) { printf("Bob"); } } return 0; }
main.c: In function 'main': main.c:8:20: error: expected expression before '[' token 8 | if(a == b) [ | ^ main.c:9:32: error: expected ';' before '}' token 9 | printf("Draw"); | ^ | ; 10...
s488150962
p03803
C++
#include <iostream> using namespace std; int main() { int A, B; cin >> A >> B; if (A == B) cout << "Draw"; else if ((A > B and B != 1) or (A != B and A == 1)) cout << "Alice"; else cout << "Bob"; } return 0; }
a.cc:14:5: error: expected unqualified-id before 'return' 14 | return 0; | ^~~~~~ a.cc:15:1: error: expected declaration before '}' token 15 | } | ^
s007260947
p03803
C++
#include <iostream> using namespace std; int main() { int A, B; cin >> A >> B; if ((A>=1 or A<=13) and (B>=1and B<=13)){ if (A == B) cout << "Draw\n"; else if ((A > B and B != 1) or (A != B and A == 1)) cout << "Alice\n"; else cout << "Bob\n"; ...
a.cc: In function 'int main()': a.cc:7:33: error: unable to find numeric literal operator 'operator""and' 7 | if ((A>=1 or A<=13) and (B>=1and B<=13)){ | ^~~~ a.cc:7:37: error: expected ')' before 'B' 7 | if ((A>=1 or A<=13) and (B>=1and B<=13)){ | ...
s951094815
p03803
C++
using namespace std; int main() { int A,B; cin>> A>> B; if(A==B) cout<<"draw"; else if ((A >B and B != 1) or (A!=B and A==1) ) cout << "Alice"; else cout << "Bob"; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin>> A>> B; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:7:9: error: ...
s309318358
p03803
C++
using namespace std; int main() { int A,B; cin>> A>> B; if(A==B) cout<<"draw\n"; else if ((A >B and B != 1) or (A!=B and A==1) ) cout << "Alice\n"; else cout << "Bob\n"; return 0; }
a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin>> A>> B; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:7:9: error: ...
s856876883
p03803
C++
#include <iostream> #include <string> using namespace std; int main() { int a,b;cin>>a>>b; if(a==1 || b==1){ cout<<"Alice"; } if(b==1&&a!=1){ cout<<"Bob"; } if(a==b){ cout<<"Draw"; } } else{ if(a>b){ cout<<"Alice"; } if(a<b){ cout<<"Bob"; } if(a==b){ cout<<"Draw"; } } return 0; }
a.cc:17:1: error: expected unqualified-id before 'else' 17 | else{ | ^~~~ a.cc:28:2: error: expected unqualified-id before 'return' 28 | return 0; | ^~~~~~ a.cc:29:1: error: expected declaration before '}' token 29 | } | ^
s505959630
p03803
C++
#include <iostream> using namespace std; int main(){ int a; int b; cin>>a>>b; if(a=b){ cout<<"Draw": } else if(a=1){ cout<<"Alice"; } else if (b=1){ cout<<"Bob"; } else if (b>a){ cout<<"Bob"; } ...
a.cc: In function 'int main()': a.cc:10:17: error: expected ';' before ':' token 10 | cout<<"Draw": | ^ | ;
s811983963
p03803
C++
#include <iostream> using namespace std; int main(){ int a; int b; cin>>a>>b; if (a!=1 and b!=1){ if (a>b){ cout<"Alice"; } if (a<b){ cout<<"Bob"; }else cout<<"Draw"; } if(a=1 and b!=1){ cout<"Alice"; } else (a!=1 and b=1){ cout<<"Bob": } else cout<<"...
a.cc: In function 'int main()': a.cc:11:13: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 11 | cout<"Alice"; | ~~~~^~~~~~~~ | | | | | const char [6] | std::ostream {aka std...
s232555569
p03803
C++
int a, b; cin>> a >> b; if(a == b) cout<< "Draw"; else if ((a>b || a==1) && b!=1){ cout<< "Alica"; }else if ((b>a || b==1) && a!=1){ cout<< "Bob"; } return 0; }
a.cc:2:1: error: 'cin' does not name a type 2 | cin>> a >> b; | ^~~ a.cc:4:1: error: expected unqualified-id before 'if' 4 | if(a == b) | ^~ a.cc:6:1: error: expected unqualified-id before 'else' 6 | else if ((a>b || a==1) && b!=1){ | ^~~~ a.cc:8:2: error: expected unqualified-id before 'e...
s516231760
p03803
C++
#include <iostream> using namespace std; int main() { int a; int b; cin>> a >> b; if(a == b){ cout<< "Draw"; return 0; } if ((a==1 || a>b) && b!=1){ cout<< "Alica"; return 0; } if (a!=1 &&(b>a || b==1){ cout<< "Bob"; return 0; } return 0; }
a.cc: In function 'int main()': a.cc:19:25: error: expected ';' before '{' token 19 | if (a!=1 &&(b>a || b==1){ | ^ | ; a.cc:23:1: error: expected primary-expression before 'return' 23 | return 0; | ^~~~~~ a.cc:22:2: error: expected ')' before 'ret...
s656449480
p03803
C++
#include <iostream> using namespace std; int main(){ int a,b; cin>> a>>b; if (a>b && b!=1 ){ cout<<"Alice"; } else if (b>a && a!=1){ cout<<"bob";} else if (a==1 && b!=1)cout<< "Alice"; else if (b==1 && a!=1)cout<<"Bob"; else cout<<"Draw"; return 0;
a.cc: In function 'int main()': a.cc:17:14: error: expected '}' at end of input 17 | return 0; | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s918038289
p03803
C++
A, B = map(int, input().split()) if A != 1 or B != 1: if A == B: print('Draw') elif A > B: print('Alice') elif A < B: print('Bob') else: if A == 1 and B != 1: print('Alice') elif B == 1 and A != 1: print('Bob') else: print('Draw')
a.cc:4:15: warning: multi-character character constant [-Wmultichar] 4 | print('Draw') | ^~~~~~ a.cc:6:15: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 6 | print('Alice') | ^~~~~~~ a.cc:8:15: warning: multi-character cha...
s110922796
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; printf((a+11)%13>(b+11)%13?"Alice":(a+11)%13==(b+11)%13?"Draw":"Bob") return 0; }
a.cc: In function 'int main()': a.cc:7:78: error: expected ';' before 'return' 7 | printf((a+11)%13>(b+11)%13?"Alice":(a+11)%13==(b+11)%13?"Draw":"Bob") | ^ | ...
s327810306
p03803
C++
#include<iostream> using namespace std; int main() { int n,m; cin>>n>>m; if (n>m) cout<<"Alice"<<endl; else if (m>n) cout<<"Bob"<<endl; else (m==n) cout<<"Draw"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:16: error: expected ';' before 'cout' 11 | else (m==n) | ^ | ; 12 | cout<<"Draw"<<endl; | ~~~~
s792315701
p03803
C++
#include <string> using namespace std; enum suits { none, diamond, club, heart, spade }; class card { public: card( ){ suit = none; rank = 0; } card( suits sv, int rv) { rank = rv; suit = sv; } int spots ( ){ return rank; } suits kind ( ){ ...
a.cc:60:10: fatal error: card.h: No such file or directory 60 | #include "card.h" | ^~~~~~~~ compilation terminated.
s198380631
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b;string ans; cin >>a>>b; if(a==1)a=14; if(b==1)b=14; if(a>b)ans="Alice" if(a<b)ans="Bob" if(a==b)ans="Draw"; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:9:21: error: expected ';' before 'if' 9 | if(a>b)ans="Alice" | ^ | ; 10 | if(a<b)ans="Bob" | ~~
s780923204
p03803
C++
#include <iostream> #include <vector> using namespace std; typedef pair<int,int> P; int main(){ int n,m;cin>>n>>m; vector<P> nya(m); for(int i = 0; m > i; i++){ cin >> nya[i].first>>nya[i].second; } vector<int> Pa(n); for(int i = 0; n > i; i++){ Pa[i] = i+1; } int ans = 0; do{ bool ad = tr...
a.cc: In function 'int main()': a.cc:32:18: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]', declared with attribute 'nodiscard' [-Wunused-result] 32 | }while(Pa.begin(),Pa...
s424654972
p03803
C++
#include <iostream> #include <vector> using namespace std; typedef pair<int,int> P; int main(){ int n,m;cin>>n>>m; vector<P> nya(m); for(int i = 0; m > i; i++){ cin >> nya[i].first>>nya[i].second; } vector<int> Pa(n); for(int i = 0; n > i; i++){ Pa[i] = i+1; } int ans = 0; do{ bool ad = tr...
a.cc: In function 'int main()': a.cc:21:52: error: expected primary-expression before '[' token 21 | if(min(nya[j].first,nya[j].second) == min(P[i],P[i+1]) && max(nya[j].first,nya[j].second) == max(P[i],P[i+1])){ | ^ a.cc:21:57: error: expected primary...
s703474170
p03803
C++
int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"<<endl; } else if((a>b||a==1)&&b!=1){ cout<<"Alice"<<endl; } else if(b>a||b==1){ cout<<"Bob"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:1: error: 'cin' was not declared in this scope 6 | cin>>a>>b; | ^~~ a.cc:10:5: error: 'cout' was not declared in this scope 10 | cout<<"Draw"<<endl; | ^~~~ a.cc:10:19: error: 'endl' was not declared in this scope 10 | cout<<"Draw"<<endl; | ...
s612480639
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if (a==b){ cout<<"Draw"\n; return 0; } if (a>b||a==1) cout<<"Alice\n"; else cout<<"Bob\n"; return 0; }
a.cc:7:17: error: stray '\' in program 7 | cout<<"Draw"\n; | ^ a.cc: In function 'int main()': a.cc:7:17: error: expected ';' before 'n' 7 | cout<<"Draw"\n; | ^~ | ;
s174169349
p03803
C++
#include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a>b) cout<<"Alice"; else if(b>a) cout<<"bob"; else if(a==b) cout<<"Draw" }
a.cc: In function 'int main()': a.cc:12:17: error: expected ';' before '}' token 12 | cout<<"Draw" | ^ | ; 13 | } | ~
s323174326
p03803
C++
#include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a>b) cout<<"alice"; else if(b>a) cout<<"bob"; else if(a==b) cout<<"draw" }
a.cc: In function 'int main()': a.cc:12:17: error: expected ';' before '}' token 12 | cout<<"draw" | ^ | ; 13 | } | ~
s060528354
p03803
C
#include <bits/stdc++.h> #define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++) using namespace std; //////全探索したいときに開けよ//////// vector<vector<int>> fspattern; vector<int> fspattern_draft; int fspcnt = 0; void setfspattern_core(int floor,int number,int degree){ if(floor==degree){ fspattern.at(fspcnt) = fspattern...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s748136623
p03803
C++
//{{{ #include <bits/stdc++.h> using namespace std; const string truename = "Yes"; const string falsename = "No"; struct IoSetup { IoSetup(){ cin.tie(nullptr); // ios::sync_with_stdio(false); cout << fixed << setprecision(10); cerr << fixed << setprecision(10); }; } ioSetup; //{{{ rep rrep loop #...
a.cc: In function 'int main()': a.cc:166:15: error: expected ';' before '{' token 166 | }else(a > b){ | ^ | ; a.cc:168:4: error: 'else' without a previous 'if' 168 | }else{ | ^~~~
s808173689
p03803
C++
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <map> #define N 100005 using namespace std; typedef long long ll; ll x; int n; int a[N]; int a, b; int main() { cin>>a>>b; if (a == b) cout<<"Draw"<<endl; else { if (a == 1) cout<<"Alice"<<endl; else if...
a.cc:13:5: error: conflicting declaration 'int a' 13 | int a, b; | ^ a.cc:12:5: note: previous declaration as 'int a [100005]' 12 | int a[N]; | ^ a.cc: In function 'int main()': a.cc:15:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '...
s651611657
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b ; if(a==b) cout << "Draw"; if(a<b) cout << "Bob" if(a>b) cout << "Alice" }
a.cc: In function 'int main()': a.cc:10:18: error: expected ';' before 'if' 10 | cout << "Bob" | ^ | ; 11 | if(a>b) | ~~
s455818338
p03803
C++
#include <iostream> using namespace std; int main(void){ 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(b<a){ ...
a.cc: In function 'int main()': a.cc:18:14: error: expected ';' before '{' token 18 | else(b<a){ | ^ | ;
s682095616
p03803
C++
include <iostream> #include <vector> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; #define pb push_back #define eb emplace_back #define fi first #define se second #define bg begin() #define ed end() #define all(x) x.bg, x....
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/vector:62, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu...
s445687274
p03803
C++
#include <iostream> #include <vector> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; #define pb push_back #define eb emplace_back #define fi first #define se second #define bg begin() #define ed end() #define all(x) x.bg, x....
a.cc: In function 'int main()': a.cc:65:11: error: 'Alice' was not declared in this scope 65 | cout << Alice<<endl; | ^~~~~ a.cc:67:11: error: 'Draw' was not declared in this scope 67 | cout << Draw <<endl; | ^~~~ a.cc:69:11: error: 'Bob' was not declared in this scope 69 | ...
s078177439
p03803
C++
#include <stdio.h> #include <iostream> #include <string> #include <vector> #include <utility> #include <algorithm> #include <queue> #include <list> #include <stack> using namespace std; struct drag { int m, val; }; int n; int ma, mb; int result; vector<drag> v; void calc(int cost, int i, int m) { if (i == n) { ...
a.cc: In function 'int main()': a.cc:56:18: error: 'INT_MAX' was not declared in this scope 56 | result = INT_MAX; | ^~~~~~~ a.cc:10:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 9 | #include <stack> +++ |+#include <c...
s934347848
p03803
C++
#include<bits/stdc++.h> using namespace std; #define 1 14 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; }
a.cc:3:9: error: macro names must be identifiers 3 | #define 1 14 | ^
s065557083
p03803
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int s1 = sc.nextInt(); int s3 = sc.nextInt(); if(s1=s3)System.out.println("Draw"); else if(s1==1)System.out.println("Alice"); else if(s3==1)System.out.println("Bob"); else if(s1>...
Main.java:8: error: incompatible types: int cannot be converted to boolean if(s1=s3)System.out.println("Draw"); ^ 1 error
s626568355
p03803
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int s1 = sc.nextInt(); int s3 = sc.nextInt(); if(s1=s3)System.out.println("Draw"); else if(s1==1||s1>s3)System.out.println("Alice"); else if(s3==1||s3<s1)System.out.println("Bob"); ...
Main.java:8: error: incompatible types: int cannot be converted to boolean if(s1=s3)System.out.println("Draw"); ^ 1 error
s936117537
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int a,b; cin>>b>>a; if (a==b){ cout<<"Draw"<<endl; } else if (b>a||b==1){ cout<<"Bob"<<endl; } else if(){ cout<<"Alice"<<endl; } }
a.cc: In function 'int main()': a.cc:13:13: error: expected primary-expression before ')' token 13 | else if(){ | ^
s992926886
p03803
C
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a != 1){ if(b != 1){ if(a > b) printf("Alice"); else if(a < b) printf("Bob"); else printf("Draw"); }else if(a == 1) printf("Draw"); else printf("Bob"); else if(b == 1) printf("Draw"); else printf("Alice"); retu...
main.c: In function 'main': main.c:12:3: error: expected '}' before 'else' 12 | else if(b == 1) printf("Draw"); | ^~~~
s725074860
p03803
C
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a != 1){ if(b != 1){ if(a > b) printf("Alice"); else if(a < b) printf("Bob"); else printf("Draw"); }else if(a == 1) printf("Draw") else printf("Bob") else if(b == 1) printf("Draw"); else printf("Alice") }
main.c: In function 'main': main.c:10:36: error: expected ';' before 'else' 10 | }else if(a == 1) printf("Draw") | ^ | ; 11 | else printf("Bob") | ~~~~ main.c:13:23: error: expected ';' ...
s995045957
p03803
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long (i)=0;(i)<(n);(i)++) #define ll long long #define pr_qu priority_queue #define vec(name,size,common) vector<ll> (name)((size),(common)) int main(){ int a,b; cin>>a>>b; if(a==1){ a=100; } if(b==1){ b=100; if(a>b)...
a.cc: In function 'int main()': a.cc:30:2: error: expected '}' at end of input 30 | } | ^ a.cc:13:11: note: to match this '{' 13 | int main(){ | ^
s430858827
p03803
C
#include <stdio.h> int main() { int n, m, l, k,t; scanf("%d%d",&n,&m); if(n==m){ printf("Draw\n"); } else if(n>m&&m==1){ printf("Bob\n"); } else if(n>m&&m!=1){ printf("Alice\n"); } else if(n<m&&n==1){ printf("Alice\n"); } else if(n<m&&n!=1){ p...
main.c: In function 'main': main.c:19:5: error: expected declaration or statement at end of input 19 | return 0; | ^~~~~~
s175584913
p03803
C
#include <stdio.h> int main() { int n, m, l, k,t; scanf("%d%d",&n,&m); if(n==m){ printf("Draw\n"); } else if(n>m&&m==1){ printf("Bob\n"); } else if(n>m&&m!=1){ printf("Alice\n"); } else if(n<m&&n==1){ printf("Alice\n"); } else if(n<m&&n!=1){ p...
main.c: In function 'main': main.c:19:5: error: expected expression at end of input 19 | return | ^~~~~~ main.c:19:5: error: expected declaration or statement at end of input
s392862289
p03803
C
include <stdio.h> int main() { int n, m, l, k,t; scanf("%d%d",&n,&m); if(n==m){ printf("Draw\n"); } else if(n>m&&m==1){ printf("Bob\n"); } else if(n>m&&m!=1){ printf("Alice\n"); } else if(n<m&&n==1){ printf("Alice\n"); } else if(n<m&&n!=1){ pr...
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s687958374
p03803
C++
#include <bits/stdc++.h> #define rep(i,m,n) for(int i=m; i<n; i++) #define co(n) cout << n << endl using namespace std; int main(){ int a, b, c, d; cin >> a >> b; if(a==1) a=14; if(b==1) b=14 if(a>b) co("Alice"); else if(a==b) co("Draw"); else co("Bob"); return 0; }
a.cc: In function 'int main()': a.cc:9:16: error: expected ';' before 'if' 9 | if(b==1) b=14 | ^ | ; 10 | if(a>b) co("Alice"); | ~~
s431081829
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 << "Bob" << endl; else cout << "Alice" << endl; return 0; ]
a.cc: In function 'int main()': a.cc:12:1: error: expected primary-expression before ']' token 12 | ] | ^ a.cc:12:2: error: expected '}' at end of input 12 | ] | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s294659715
p03803
C++
a,b = map(int,input().split()) dic = ['Alice','Bob','Draw'] ans = 0 rev = 1 if a==b: ans = 2 elif a>b: ans = 0 else: ans = 1 if (a==1 or b==1) and ans!=2: ans ^= 1 print(dic[ans])
a.cc:2:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes 2 | dic = ['Alice','Bob','Draw'] | ^~~~~~~ a.cc:2:16: warning: multi-character character constant [-Wmultichar] 2 | dic = ['Alice','Bob','Draw'] | ^~~~~ a.cc:2:22: warning: multi-characte...
s428088159
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int a,b; cin>>a>>b; if (a==b){ cout<<"Draw"<<endl; } else if (b==1<a){ cout<<"Bob"<<endl; } else cout<<"Alice"<<endl; } }
a.cc:16:1: error: expected declaration before '}' token 16 | } | ^
s511663034
p03803
C
#include<stdio.h> int main() { int A,B; 1<=A<=13; 1<=B<=13; scanf("%d %d",&A,&B); if(A!==1 && B!==1) { if(A>B) printf("Alice"); else if(A<B) printf("Bob"); else printf("Draw"); } else if(A==1 && B!==1) printf("Alice"); else if(B==1 && A!==1) printf("Bob"); else printf("Draw"); }
main.c: In function 'main': main.c:8:15: error: expected expression before '=' token 8 | if(A!==1 && B!==1) | ^ main.c:17:28: error: expected expression before '=' token 17 | else if(A==1 && B!==1) | ^
s052094730
p03803
C
#include<stdio.h> int main() { int A,B; 1<=A<=13; 1<=B<=13; scanf("%d %d",&A,&B); if(A!==1;B!==1) { if(A>B) printf("Alice"); else if(A<B) printf("Bob"); else printf("Draw"); } else if(A==1;B!==1) printf("Alice"); else if(B==1;A!==1) printf("Bob"); else printf("Draw"); }
main.c: In function 'main': main.c:8:15: error: expected expression before '=' token 8 | if(A!==1;B!==1) | ^ main.c:17:21: error: expected ')' before ';' token 17 | else if(A==1;B!==1) | ~ ^ | ) main.c:19:29: error: expected ')...
s437504729
p03803
C
#include<stdio.h> int main() { int A,B; 1<=A<=13; 1<=B<=13; scanf("%d %d",&A,&B); if(A!==1;B!==1) { if(A>B) printf("Alice"); else if(A<B) printf("Bob"); else printf("Draw"); } else if(A==1;B!==1) printf("Alice"); else if(B==1;A!==1) printf("Bob"); else printf("Draw"); }
main.c: In function 'main': main.c:8:15: error: expected expression before '=' token 8 | if(A!==1;B!==1) | ^ main.c:17:21: error: expected ')' before ';' token 17 | else if(A==1;B!==1) | ~ ^ | ) main.c:19:29: error: expected ')...
s804566381
p03803
C++
#include <vector> #include <iostream> #include <algorithm> #include <functional> #include <string> #include <limits.h> #include <cmath> #include <queue> #include <map> #include <iomanip> #include <random> #include <fstream> #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.14159265358979323846 #define MOD 1000...
a.cc: In function 'int main()': a.cc:72:33: error: expected ';' before '}' token 72 | else if (a>b){cout << "Alice;"} | ^ | ;
s690644472
p03803
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <cmath> #include <climits> using namespace std; bool comp(pair<int, string> a, pair<int, string> b){ if(a.first != b.first) return a.first > b.first; else return a.second...
a.cc: In function 'int main()': a.cc:42:42: error: expected ';' before 'cout' 42 | else if((b == 1 || (a != 1 && a < b)) | ^ | ; 43 | cout << "Bob" << endl; | ~~~~ ...
s883351787
p03803
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <cmath> #include <climits> using namespace std; bool comp(pair<int, string> a, pair<int, string> b){ if(a.first != b.first) return a.first > b.first; else return a.second...
a.cc: In function 'int main()': a.cc:39:9: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 39 | cin > a >> b; | ~~~ ^ ~~~~~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:39:9: not...
s586917822
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{ cout << "...
a.cc:23:1: error: expected declaration before '}' token 23 | } | ^
s676297423
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! 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 ; } els...
a.cc: In function 'int main()': a.cc:13:5: error: expected primary-expression before ']' token 13 | ] | ^ a.cc:19:5: error: expected '}' before 'else' 19 | else if(a<b){ | ^~~~ a.cc:11:15: note: to match this '{' 11 | if(b == 1){ | ^ a.cc:22:12: error: expect...
s907327899
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! 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 ; } els...
a.cc: In function 'int main()': a.cc:13:5: error: expected primary-expression before ']' token 13 | ] | ^ a.cc:19:5: error: expected '}' before 'else' 19 | else if(a<b){ | ^~~~ a.cc:11:15: note: to match this '{' 11 | if(b == 1){ | ^
s202215196
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! 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 ; } els...
a.cc: In function 'int main()': a.cc:13:5: error: expected primary-expression before ']' token 13 | ] | ^ a.cc:19:5: error: expected '}' before 'else' 19 | else if(a<b){ | ^~~~ a.cc:11:15: note: to match this '{' 11 | if(b == 1){ | ^
s001938072
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! 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...
a.cc: In function 'int main()': a.cc:12:15: error: expected ';' before ']' token 12 | b = 14 | ^ | ; 13 | ] | ~ a.cc:19:5: error: expected '}' before 'else' 19 | else if(a<b){ | ^~~~ a.cc:11:15: note: to match this '{' 11 ...
s943447994
p03803
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int a,b; cin >> a >> b; if(a == 1){ a = 14; } if(b == 1){ b = 14 ] if(a>b){ cout << "Alice" } else if(a<b){ cout <<"Bob" } else cout <<"Draw" <<e...
a.cc: In function 'int main()': a.cc:12:15: error: expected ';' before ']' token 12 | b = 14 | ^ | ; 13 | ] | ~ a.cc:19:5: error: expected '}' before 'else' 19 | else if(a<b){ | ^~~~ a.cc:11:15: note: to match this '{' 11 ...