submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s904810875
p03803
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin>>a>>b; if(a==1)a=14; if(b==1)a=14; if(a>b){ cout<<"Alice"<<endl; } else if(b>a){ cout<<"Bob"<<endl; } else if(a==b){ cout<<"Draw"<<endl } }
a.cc: In function 'int main()': a.cc:15:27: error: expected ';' before '}' token 15 | cout<<"Draw"<<endl | ^ | ; 16 | } | ~
s026044968
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" <<endl }
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 | if(b == 1){ | ^ a.cc:20:21: error: expected ';' before '}' token 20 | cout <<"Bob" | ^ | ; 21 | } | ~ a.cc:22:30: error: expected ';' before '}' token 22 | else cout <<"Draw" <<endl | ^ | ; 23 | } | ~
s030154535
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; } if(A == B){ cout << "Drow" << endl; } else{ cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:9:15: error: expected ';' before '}' token 9 | A = 14 | ^ | ; 10 | } | ~ a.cc:12:15: error: expected ';' before '}' token 12 | B = 14 | ^ | ; 13 | } | ~
s472864249
p03803
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin>>a>>b; if(a==1)a=14; if(b==1)a=14; if(a<b){ cout<<"Alice"<<endl; } else if(b<a){ cout<<"Bob"<<endl; } else if(a==b){ cout<<"Draw"<<endl } }
a.cc: In function 'int main()': a.cc:15:27: error: expected ';' before '}' token 15 | cout<<"Draw"<<endl | ^ | ; 16 | } | ~
s234883100
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 << "Alise" <<endl; } else if(a<b){ cout <<"Bob"<<endl; } else if(a=b){ cout<<"Draw"<<endl; } }
a.cc:4:5: error: expected initializer before 'int' 4 | int a,b; | ^~~ a.cc:5:5: error: 'cin' does not name a type 5 | cin>>a>>b | ^~~ a.cc:7:5: error: expected unqualified-id before 'if' 7 | if(b=1)b=14; | ^~ a.cc:8:5: error: expected unqualified-id before 'if' 8 | if(a>b){ | ^~ a.cc:11:5: error: expected unqualified-id before 'else' 11 | else if(a<b){ | ^~~~ a.cc:14:5: error: expected unqualified-id before 'else' 14 | else if(a=b){ | ^~~~ a.cc:17:5: error: expected declaration before '}' token 17 | } | ^
s423912102
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; if(A == B){ cout << "Drow" << endl; else{ cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:9:15: error: expected ';' before '}' token 9 | A = 14 | ^ | ; 10 | } | ~ a.cc:12:15: error: expected ';' before '}' token 12 | B = 14 | ^ | ; 13 | } | ~ a.cc:18:5: error: expected '}' before 'else' 18 | else{ | ^~~~ a.cc:16:15: note: to match this '{' 16 | if(A == B){ | ^ a.cc:23:2: error: expected '}' at end of input 23 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s106507452
p03803
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin>>a>>b; if(a==1)a=14; if(b==1)a=14; if(a<b){ cout<<"Alice"<<endl; } else if(a>b){ cout<<"Bob"<<endl; } else if(a==b){ cout<<"Draw"<<endl } }
a.cc: In function 'int main()': a.cc:15:27: error: expected ';' before '}' token 15 | cout<<"Draw"<<endl | ^ | ; 16 | } | ~
s217735375
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; if(A == B){ cout << "Drow" << endl; else{ cout << "Bob"<< endl; } }
a.cc: In function 'int main()': a.cc:8:21: error: expected ';' before 'if' 8 | if(A == 1)A = 14 | ^ | ; 9 | if(B == 1)B = 14 | ~~ a.cc:19:2: error: expected '}' at end of input 19 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s713582474
p03803
C++
#include <iostream> using namespace std; int main(void){ int a,b; cin>>a>>b; if(a==1)a=14; if(b==1)a=14; if(a<b){ cout<<"Alice"<<endl; } else if(a>b){ cout<<"Bob"<<endl; } else if(a==b){ cout<<"Drow"<<endl } }
a.cc: In function 'int main()': a.cc:15:27: error: expected ';' before '}' token 15 | cout<<"Drow"<<endl | ^ | ; 16 | } | ~
s506420166
p03803
C++
#include <stdio.h> using namespace std; int main() { int A,B,king=1; scanf("%d %d",&A,&B); if(A>=1 && a<=13 && B>=1 && B<=13) { if(A==king) { printf("Alice\n"); } else if(B==king) { printf("Bob\n"); } else if(A>B) { printf("Alice\n"); } else if(B>A) { printf("Bob\n"); } else if(A==B && B==A) { printf("Draw\n"); } } return 0; }
a.cc: In function 'int main()': a.cc:7:12: error: 'a' was not declared in this scope 7 | if(A>=1 && a<=13 && B>=1 && B<=13) | ^
s988121051
p03803
C++
#include <stdio.h> using namespace std; int main() { int A,B,king=1; scanf("%d %d",&A,&B); if(A>=1 && a<=13 && B>=1 && B<=13) if(A==king) { printf("Alice\n"); } else if(B==king) { printf("Bob\n"); } else if(A>B) { printf("Alice\n"); } else if(B>A) { printf("Bob\n"); } else if(A==B && B==A) { printf("Draw\n"); } return 0; }
a.cc: In function 'int main()': a.cc:7:12: error: 'a' was not declared in this scope 7 | if(A>=1 && a<=13 && B>=1 && B<=13) | ^
s487351841
p03803
C
#include <stdio.h< int main(void){ int a,b; scanf("%d %d",&a,&b); if(a>b){printf("Alice\n");} else if(a<b){printf("Bob\n");} else {printf("Draw\n");} return 0; }
main.c:1:19: error: missing terminating > character 1 | #include <stdio.h< | ^ main.c:1:10: fatal error: stdio.h<: No such file or directory 1 | #include <stdio.h< | ^ compilation terminated.
s418750721
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("Draw"); } else if(a > b || a == 1) { System.out.println("Alice"); } else { System.out.println("Bob"); }
Main.java:17: error: reached end of file while parsing } ^ 1 error
s951208610
p03803
C++
int a, b; int main () { cin >> a >> b; if (a==1){ a=14; } if (b==1){ b=14; } if (a==b){ cout << "Draw" << endl; } else if (a<b){ cout << "Bob" << endl; } else if (a>b){ cout << "Alice" << endl; } }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | cin >> a >> b; | ^~~ a.cc:13:17: error: 'cout' was not declared in this scope 13 | cout << "Draw" << endl; | ^~~~ a.cc:13:35: error: 'endl' was not declared in this scope 13 | cout << "Draw" << endl; | ^~~~ a.cc:15:17: error: 'cout' was not declared in this scope 15 | cout << "Bob" << endl; | ^~~~ a.cc:15:34: error: 'endl' was not declared in this scope 15 | cout << "Bob" << endl; | ^~~~ a.cc:17:17: error: 'cout' was not declared in this scope 17 | cout << "Alice" << endl; | ^~~~ a.cc:17:36: error: 'endl' was not declared in this scope 17 | cout << "Alice" << endl; | ^~~~
s283713067
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A B; cin >> A >> B ; if(A == 1&&B == 1)cout << "Draw" << endl; else if(A == 1) cout << "Alice" << endl; else if(B==1) cout << "Bob" << endl; else if(A == B)cout << "Draw" << endl; else if(A>B)cout << "Alice" << endl; else if(B>A)cout << "Bob" << endl; }
a.cc: In function 'int main()': a.cc:4:8: error: expected initializer before 'B' 4 | int A B; | ^ a.cc:5:10: error: 'A' was not declared in this scope 5 | cin >> A >> B ; | ^ a.cc:5:15: error: 'B' was not declared in this scope 5 | cin >> A >> B ; | ^
s585112546
p03803
C++
#include<iostream> #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int a,b; cin >> a >> b; if(a==1){ a=14 } if(b==14){ b=14; } if(a<b){ cout << "Bob" << endl; }else if(a>b){ cout << "Alice" << endl; }else{ cout << "Draw" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:13: error: expected ';' before '}' token 10 | a=14 | ^ | ; 11 | } | ~
s879960167
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; if(a == b){ cout << "Draw" << endl; return 0; } if((a == 1 || a > b){ cout << "Alice" << endl; }else if(b == 1 || b > a){ cout << "Bob" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:23: error: expected ';' before '{' token 13 | if((a == 1 || a > b){ | ^ | ; a.cc:15:4: error: expected primary-expression before 'else' 15 | }else if(b == 1 || b > a){ | ^~~~ a.cc:15:4: error: expected ')' before 'else' 15 | }else if(b == 1 || b > a){ | ^~~~ | ) a.cc:13:5: note: to match this '(' 13 | if((a == 1 || a > b){ | ^
s544235153
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; if(a == b){ cout << "Draw" << endl; return 0; } if((a == 1 || a > b){ cout << "Alice" << endl; }else if(b == 1 || b > a){ cout << "Bob" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:23: error: expected ';' before '{' token 13 | if((a == 1 || a > b){ | ^ | ; a.cc:15:4: error: expected primary-expression before 'else' 15 | }else if(b == 1 || b > a){ | ^~~~ a.cc:15:4: error: expected ')' before 'else' 15 | }else if(b == 1 || b > a){ | ^~~~ | ) a.cc:13:5: note: to match this '(' 13 | if((a == 1 || a > b){ | ^
s121966358
p03803
C++
#include <bits/stdc++.h> 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"; } else if (A>B){ cout << "Bob"; } else cout << "Draw"; } }
a.cc:19:1: error: expected declaration before '}' token 19 | } | ^
s128211333
p03803
C++
#include <bits/stdc++.h> 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"; } else { if (A>B){ cout << "Bob"; } else cout << "Draw"; } } }
a.cc:21:1: error: expected declaration before '}' token 21 | } | ^
s674517786
p03803
C++
#include <isotream> #include <map> using namespace std; int main(){ map<int , int> m; m[1] = 13; m[2] = 1; m[3] = 2; m[4] = 3; m[5] = 4; m[6] = 5; m[7] = 6; m[8] = 7; m[9] = 8; m[10] = 9; m[11] = 10; m[12] = 11; m[13] = 13; int a, b; cin >> a >> b; string ans = ""; if(m[a] == m[b]) ans = "Draw"; else if(m[a] > m[b]) ans = "Alice"; else ans = "Bob"; cout << ans; }
a.cc:1:10: fatal error: isotream: No such file or directory 1 | #include <isotream> | ^~~~~~~~~~ compilation terminated.
s575023126
p03803
C++
#include <iostream> using namespace std; int main(){ int n, m; cin >> n >> m; int a[50][50]; int b[50][50]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cin >> a[i][j]; } } for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cin >> b[i][j]; } } bool ans = false; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (a[i][j] == b[0][0]) { bool match = true; for (int k = 0; k < m k++) { for (int l = 0; l < m; l++) { if (a[i+k][j+l] != b[k][l]) { match = false; } } } ans = match; } } } if (ans) { cout << "Yes"; } else { cout << "No"; } return 0; }
a.cc: In function 'int main()': a.cc:27:30: error: expected ';' before 'k' 27 | for (int k = 0; k < m k++) { | ^~ | ;
s300878223
p03803
C++
/*|In The Name of Allah|*/ #include <bits/stdc++.h> using namespace std; void File() { freopen("output.txt", "w", stdout); freopen("input.txt", "r", stdin); } void yAsEr_HaFiz() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<string> vs; typedef vector<pair<int,int> > vii; typedef map<int, int> mii; typedef map<string, int> msi; typedef map<long, long> mll; typedef set<int> si; typedef set<string> st; typedef set<long> sl; typedef pair<int, int> pii; #define lp(i,n) for(int i = 0;i < int(n);i++) #define rlp(i, n) for (int i = (n) - 1; i >= 0; i--) #define rng(i,a,b) for(int i = int(a);i <= int(b);i++) #define mp(x,y) make_pair((x),(y)) #define pb(x) push_back((x)) #define all(v) ((v).begin()),((v).end()) #define sz(x) ((int) (x).size()) #define setzero(a) memset(a,0,sizeof(a)) #define bits(a) __builtin_popcountll(a) #define fr first #define sc second #define el "\n" #define pii pair<int, int> #define sortva(v) sort(all(v)) #define sortvd(v) sort(v.rbegin(),v.rend()) #define sortaa(a,n) sort(a,a+n) #define sortad(a,n) sort(a,a+n),reverse(a,a+n) #define ndl puts("") #define SS stringstream #define ll long long #define endl '\n' #define clr(x, y) memset(x, y, sizeof(x)) #define foreach(it,x) for(__typeof__((x).begin()) it = (x).begin(); it != (x).end(); ++it) int dx[] = { 0, 0, 1, -1, 1, -1, 1, -1 }; int dy[] = { 1, -1, 0, 0, -1, 1, 1, -1 }; int const N = 5e5 + 9, MOD = 1e9+7 , oo = 1e9+7; //------------------------------------------------------------------------------------ ll target,lo,hi; int arr[N],f[N],n; int k,q; int main() { yAsEr_HaFiz(); int n,m; cin>>n>>m; if (n==1&&m==13)cout< "Alice"; else if (n==13&&m==1) cout<< "Bob"; else { if (n>m)cout<< "Alice"; else if (n==m)cout<< "Draw"; else cout<< "Bob"; } /* */ return 0; }
a.cc: In function 'int main()': a.cc:86:25: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 86 | if (n==1&&m==13)cout< "Alice"; | ~~~~^ ~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:2: /usr/include/c++/14/bits/regex.h:1143:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1143 | operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1143:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1224 | operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1224:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1317 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1317:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1391 | operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1391:5: note: template argument deduction/substitution failed: a.cc:86:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1485 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1485:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1560 | operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1560:5: note: template argument deduction/substitution failed: a.cc:86:27: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [6]' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1660 | operator<(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1660:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:86:27: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:86:27: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'const char*' 86 | if (n==1&&m==13)cout< "Alice"; | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>
s889570943
p03803
C++
#include <bits/stdc++.h> 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 if(A<B) cout<<"Bob"<<endl; }
a.cc: In function 'int main()': a.cc:9:20: error: expected ';' before string constant 9 | else if(A>B) cout"Alice"<<endl; | ^~~~~~~ | ;
s756117201
p03803
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a == b) { cout << "Draw" << endl; } else if (a == 1 ir a > b) { cout << "Alice" << endl; } else { cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:13:20: error: expected ')' before 'ir' 13 | else if (a == 1 ir a > b) | ~ ^~~ | )
s060212350
p03803
Java
import java.util.*; public class A { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A = in.nextInt(); int B = in.nextInt(); if(A==B) System.out.println("Draw"); else if(A==1) System.out.println("Alice"); else if(B==1) System.out.println("Bob"); else if(A<B) System.out.println("Bob"); else if(A>B) System.out.println("Alice"); } }
Main.java:3: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s093394969
p03803
C++
#include<iostream> using namespace std; #include<string> int main(){ string s; s[12] = "1"; for(int i=0; i<12; i++){ s[i] = i+2; } int a, b; cin >> a >> b; if(s.find("a") > s.find("b")){ cout << "Alice" << endl; } else if (s.find("a") == s.find("b")){ cout << "Draw" << endl; } else { cout << "Bob" << endl; } }
a.cc: In function 'int main()': a.cc:7:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s[12] = "1"; | ^~~ | | | const char*
s298629998
p03803
C++
#include <bits/stdc++.h> 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" << endl; }else if(a<b){ cout << "Bob" << endl; }else{ cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:10:10: error: expected ';' before '}' token 10 | b+=13 | ^ | ; 11 | } | ~
s399257066
p03803
C++
#include <bits/stdc++.h> 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" << endl; }else if(a<b){ cout << "Bob" << endl; }else{ cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:10:10: error: expected ';' before '}' token 10 | b+=13 | ^ | ; 11 | } | ~
s624515831
p03803
C++
#include <iostream> //#include <string> using namespace std; int main() { int Alice, Bob; cin >> Alice >> Bob; if (Alice > Bob) { cout << "Alice" << endl; } else if (Bob > Alice) { cout << "Bob" << endl; } else (Alice == Bob) { cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:15:28: error: expected ';' before '{' token 15 | else (Alice == Bob) { | ^~ | ;
s226771073
p03803
C++
const int nmax = 8; bool graph[nmax][nmax]; int dfs(int v, int N, bool visited[nmax]) { 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++) { if (graph[v][i] == false) continue; if (visited[i]) continue; visited[i] = true; ret += dfs(i, N, visited); visited[i] = false; } return ret; } int main(void) { int N, M; cin >> N >> M; for (int i = 0; i < M; i++) { int A, B; cin >> A >> B; graph[A-1][B-1] = graph[B-1][A-1] = true; } bool visited[nmax]; for (int i = 0; i < N; i++) { visited[i] = false; } visited[0] = true; cout << dfs(0, N, visited) << endl; return 0; }
a.cc: In function 'int main()': a.cc:33:3: error: 'cin' was not declared in this scope 33 | cin >> N >> M; | ^~~ a.cc:45:3: error: 'cout' was not declared in this scope 45 | cout << dfs(0, N, visited) << endl; | ^~~~ a.cc:45:33: error: 'endl' was not declared in this scope 45 | cout << dfs(0, N, visited) << endl; | ^~~~
s617843373
p03803
C++
const int nmax = 8; bool graph[nmax][nmax]; int dfs(int v, int N, bool visited[nmax]) { 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++) { if (graph[v][i] == false) continue; if (visited[i])continue; visited[i] = true; ret += dfs(i, N, visited); visited[i] = false; } return ret; } int main(void) { int N, M; cin >> N >> M; for (int i = 0; i < M; i++) { int A, B; cin >> A >> B; graph[A-1][B-1] = graph[B-1][A-1] = true; } bool visited[nmax]; for (int i = 0; i < N; i++) { visited[i] = false; } visited[0] = true; cout << dfs(0, N, visited) << endl; return 0; }
a.cc: In function 'int main()': a.cc:33:3: error: 'cin' was not declared in this scope 33 | cin >> N >> M; | ^~~ a.cc:45:3: error: 'cout' was not declared in this scope 45 | cout << dfs(0, N, visited) << endl; | ^~~~ a.cc:45:33: error: 'endl' was not declared in this scope 45 | cout << dfs(0, N, visited) << endl; | ^~~~
s032027140
p03803
C++
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if(a>b) cout << "Alice" << endl; else if(b<a) cout << "Bob" << endl; else cout << "Draw" << endl; retrun 0; }
a.cc: In function 'int main()': a.cc:11:5: error: 'retrun' was not declared in this scope 11 | retrun 0; | ^~~~~~
s268771087
p03803
C++
#include <iosteram> using namespace std; int main() { int a, b; cin >> a >> b; if(a>b) cout << "Alice" << endl; else if(b<a) cout << "Bob" << endl; else cout << "Draw" << endl; retrun 0; }
a.cc:1:10: fatal error: iosteram: No such file or directory 1 | #include <iosteram> | ^~~~~~~~~~ compilation terminated.
s412297996
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, b; cin >> a >> b; 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:6:10: error: 'a' was not declared in this scope 6 | cin >> a >> b; | ^
s482060116
p03803
C++
#include <iostream> #include <algorithm> #include <vector> #include <set> #include <cmath> #include <complex> #include <deque> #include <iterator> #include <map> #include <queue> #include <stack> #include <string> #include <tuple> #include <utility> #include <limits> #include <iomanip> using namespace std; using ll=long long; template<class T> using V = vector<T>; template<class T, class U> using P = pair<T, U>; using vll = V<ll>; using vvll = V<vll>; #define rep(i, k, n) for (ll i=k; i<(ll)n; ++i) #define REP(i, n) rep(i, 0, n) template<class T> inline bool chmax(T& a, T b) {if (a<b) {a=b; return true;} return false;} template<class T> inline bool chmin(T& a, T b) {if (a>b) {a=b; return true;} return false;} const ll MOD = 1000000007; const ll HIGHINF = (ll)1e18; // || int main() { ll 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 cout << a<b?"Bob":"Alice" << endl; return 0; }
a.cc: In function 'int main()': a.cc:38:17: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'll' {aka 'long long int'}) 38 | else cout << a<b?"Bob":"Alice" << endl; | ~~~~~~~~~^~ | | | | | ll {aka long long int} | std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>} a.cc:38:17: note: candidate: 'operator<(int, ll {aka long long int})' (built-in) 38 | else cout << a<b?"Bob":"Alice" << endl; | ~~~~~~~~~^~ a.cc:38:17: note: no known conversion for argument 1 from 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 448 | operator<(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 493 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1694 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1760 | operator<(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::pair<_T1, _T2>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 673 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 680 | operator< (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed: a.cc:38:18: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'long long int' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ /usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3901 | operator<(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed: a.cc:38:18: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2600 | operator<(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /usr/include/c++/14/vector:66, from a.cc:3: /usr/include/c++/14/bits/stl_vector.h:2089:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2089 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:2089:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::vector<_Tp, _Alloc>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /usr/include/c++/14/set:63, from a.cc:4: /usr/include/c++/14/bits/stl_set.h:1025:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<(const set<_Key, _Compare, _Allocator>&, const set<_Key, _Compare, _Allocator>&)' 1025 | operator<(const set<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_set.h:1025:5: note: template argument deduction/substitution failed: a.cc:38:18: note: 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} is not derived from 'const std::set<_Key, _Compare, _Allocator>' 38 | else cout << a<b?"Bob":"Alice" << endl; | ^ In file included from /
s620006738
p03803
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A, B; cin >> A >> B; if(A==B){ cout << "Draw" << endl; } if(A==1 && B!=1){ cout << "Alice" << endl; return 0; } if(A!=1 && B==1){ cout << "Bob" << endl; return 0; } if(A>B){ cout << "Alice" << endl; } if(B>A){ cout << "Bob" << endl; }
a.cc: In function 'int main()': a.cc:22:4: error: expected '}' at end of input 22 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s621399452
p03803
C++
#include <bits/stdc++.h> using namespace std; int A, B; int main () { cin >> A >> B; if (A==1) A+=13; if (B==1) B+=13; 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:12:37: error: expected ';' before '}' token 12 | cout << "Bob" <<endl | ^ | ; 13 | } | ~
s304412139
p03803
C++
#include <iostream> using namespace std; int main (){ int A,B; cin >> A>>B; if (A==B){ cout<< "Draw"; } else{ if (A==1) cout << "Alice"; if (B==1) cout << "Bob"; if (A!=1&&B!=1) { if (A>B) cout<< "Alice"; if (B>A) cout<< "Bob"; } }
a.cc: In function 'int main()': a.cc:19:6: error: expected '}' at end of input 19 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main (){ | ^
s742105201
p03803
C++
#include <iostream> using namespace std; int main (){ int A,B; cin >> A>>B; if (A==B){ count<< "Draw"; } else{ if (A==1) cout << "Alice"; if (B==1) cout << "Bob"; if (A!=1&&B!=1) { if (A>B) cout<< "Alice"; if (B>A) cout<< "Bob"; } }
a.cc: In function 'int main()': a.cc:9:9: error: 'count' was not declared in this scope 9 | count<< "Draw"; | ^~~~~ a.cc:19:6: error: expected '}' at end of input 19 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main (){ | ^
s177800744
p03803
C++
#include <iostream> using namespace std; int main(){ int a, b; cin>>a>>b; if((a>=1 && a<=13 && b>=1 &&b<=13) if(a==b) cout<<"Draw"; else if(a==b || (a>b && b>a)) cout<<"Alice"; else cout<<"Bob"; return 0; }
a.cc: In function 'int main()': a.cc:6:43: error: expected ';' before 'if' 6 | if((a>=1 && a<=13 && b>=1 &&b<=13) | ^ | ; 7 | 8 | if(a==b) | ~~ a.cc:10:9: error: expected primary-expression before 'else' 10 | else if(a==b || (a>b && b>a)) | ^~~~ a.cc:9:30: error: expected ')' before 'else' 9 | cout<<"Draw"; | ^ | ) 10 | else if(a==b || (a>b && b>a)) | ~~~~ a.cc:6:11: note: to match this '(' 6 | if((a>=1 && a<=13 && b>=1 &&b<=13) | ^
s392184882
p03803
Java
#include<iostream> #include <algorithm> #include <string> #define rep(i,n)for(i=0;i<n;i++) 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 << "Bob" << endl; } } return 0; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include <algorithm> ^ Main.java:3: error: illegal character: '#' #include <string> ^ Main.java:4: error: illegal character: '#' #define rep(i,n)for(i=0;i<n;i++) ^ Main.java:4: error: class, interface, enum, or record expected #define rep(i,n)for(i=0;i<n;i++) ^ Main.java:4: error: class, interface, enum, or record expected #define rep(i,n)for(i=0;i<n;i++) ^ Main.java:8: error: not a statement cin >> a >> b; ^ Main.java:10: error: not a statement cout << "Draw" << endl; ^ Main.java:13: error: not a statement cout << "Alice" << endl; ^ Main.java:16: error: not a statement cout << "Bob" << endl; ^ Main.java:20: error: not a statement cout << "Alice" << endl; ^ Main.java:23: error: not a statement cout << "Bob" << endl; ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int main() { ^ (use --enable-preview to enable unnamed classes) 13 errors
s139645097
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>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 cout<<"Bob"; return 0; }
a.cc: In function 'int main()': a.cc:13:13: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [6]') 13 | cout>>"Alice"; | ~~~~^~~~~~~~~ | | | | | const char [6] | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:13:9: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 13 | cout>>"Alice"; | ^~~~ In file included from /usr/include/c++/14/string:55, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ In file included from /usr/include/c++/14/istream:1109, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[6]]': a.cc:13:8: required from here 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout>>"Alice"; | ^~~~~~~ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:13:15: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_Cha
s051676096
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b; if(a < b || a== 1 && !(b ==1)){ cout << "Alice" <<endl; } else if(a > b || b == 1 && !(a == 1)){ cout << "Bob" <<endl; } else if(a ==b){ cout << Draw <<endl; } }
a.cc: In function 'int main()': a.cc:14:13: error: 'Draw' was not declared in this scope 14 | cout << Draw <<endl; | ^~~~
s648957716
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b; if(a < b || a== 1 && !(b ==1){ cout << "Alice" <<endl; } else if(a > b || b == 1 && !(a == 1)){ cout << "Bob" <<endl; } else if(a ==b){ cout << Draw <<endl; } }
a.cc: In function 'int main()': a.cc:7:32: error: expected ')' before '{' token 7 | if(a < b || a== 1 && !(b ==1){ | ~ ^ | ) a.cc:16:1: error: expected primary-expression before '}' token 16 | } | ^
s104176223
p03803
C++
#include<iostream> using namespace std; int main() { int n,m; cin>>a>>m; if(a==1) { a=14; } if(m==1) { m=14; } if(a==m) { cout<<"Draw"; } else if(a<m) { cout<<"Bob"; } else { cout<<"Alice"; } return 0; }
a.cc: In function 'int main()': a.cc:6:10: error: 'a' was not declared in this scope 6 | cin>>a>>m; | ^
s983081656
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=1&&a<=13&&b>=1&&b<=13){ 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<<"Bob"<<endl; }
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(){ | ^
s068133077
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A , B ; scanf("%d %d", &A , &B); if(A == B ){ printf("Draw"); } if((A == 1 && B != 1)||(A != 1 && B == 1)){ if(A == 1) printf("Alice"); if(B == 1) printf("Bob"); }else if(A>B) { if(A <= 13){ printf("Alice"); } }else if(B>A){ if(B <= 13){ printf("Bob"); } } return 0;
a.cc: In function 'int main()': a.cc:32:18: error: expected '}' at end of input 32 | return 0; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s374079178
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ long long A,B; scanf("%ld%ld",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:18:9: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s759278576
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ long long A,B; scanf("%ld%ld",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:18:1: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s637001385
p03803
C++
include<iostream> #include<stdio.h> using namespace std; int main(){ long long A,B; scanf("%ld%ld",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob");}
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'scanf' was not declared in this scope 6 | scanf("%ld%ld",&A,&B); | ^~~~~ a.cc:9:9: error: 'printf' was not declared in this scope 9 | printf("Draw"); | ^~~~~~ a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' 2 | #include<stdio.h> +++ |+#include <cstdio> 3 | using namespace std; a.cc:13:17: error: 'printf' was not declared in this scope 13 | printf("Alice"); | ^~~~~~ a.cc:13:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' a.cc:17:9: error: 'printf' was not declared in this scope 17 | printf("Bob");} | ^~~~~~ a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
s215442783
p03803
C++
include<iostream> #include<stdio.h> using namespace std; int main(){ int A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob");}
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'scanf' was not declared in this scope 6 | scanf("%d%d",&A,&B); | ^~~~~ a.cc:9:9: error: 'printf' was not declared in this scope 9 | printf("Draw"); | ^~~~~~ a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' 2 | #include<stdio.h> +++ |+#include <cstdio> 3 | using namespace std; a.cc:13:17: error: 'printf' was not declared in this scope 13 | printf("Alice"); | ^~~~~~ a.cc:13:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' a.cc:17:9: error: 'printf' was not declared in this scope 17 | printf("Bob");} | ^~~~~~ a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
s001331089
p03803
C++
include<iostream> #include<stdio.h> using namespace std; int main(){ int A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'scanf' was not declared in this scope 6 | scanf("%d%d",&A,&B); | ^~~~~ a.cc:9:9: error: 'printf' was not declared in this scope 9 | printf("Draw"); | ^~~~~~ a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' 2 | #include<stdio.h> +++ |+#include <cstdio> 3 | using namespace std; a.cc:13:17: error: 'printf' was not declared in this scope 13 | printf("Alice"); | ^~~~~~ a.cc:13:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' a.cc:17:9: error: 'printf' was not declared in this scope 17 | printf("Bob"); | ^~~~~~ a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>' a.cc:18:9: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s972538410
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ lnt A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:5:9: error: 'lnt' was not declared in this scope; did you mean 'int'? 5 | lnt A,B; | ^~~ | int a.cc:6:23: error: 'A' was not declared in this scope 6 | scanf("%d%d",&A,&B); | ^ a.cc:6:26: error: 'B' was not declared in this scope 6 | scanf("%d%d",&A,&B); | ^ a.cc:18:9: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s185908409
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:18:1: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s979618573
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:18:9: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s733409534
p03803
C++
#include<stdio.h> #include<cmath> #include<iostream> using namespace std; int main(){ int A,B; cin>>A,B; if(A==B) { cout<<"Draw\n"; } else if(b==1||B>A&&A!=1) { cout<<"Bob\n"; } else if(A=1||A>B) { cout<<"Alice\n"; } else cout<<"enter number less than 14\n"; return 0; }
a.cc: In function 'int main()': a.cc:12:17: error: 'b' was not declared in this scope 12 | else if(b==1||B>A&&A!=1) | ^
s379475860
p03803
C++
#include<bits/stdc++.h> 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" << endl; } else if(A < B){ cout << "Bob" << endl; } else{ cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:8:16: error: 'a' was not declared in this scope 8 | if(A == 1) a += 13; | ^ a.cc:9:16: error: 'b' was not declared in this scope 9 | if(B == 1) b += 13; | ^
s592623241
p03803
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ long long A,B; scanf("%d%d",&A,&B); if(A==B) printf("Draw"); else if((B>A)&&(A==1)) printf("Alice"); else printf("Bob"); return0;}
a.cc: In function 'int main()': a.cc:18:9: error: 'return0' was not declared in this scope 18 | return0;} | ^~~~~~~
s325318836
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"; return 0; } if(a=1 && b!=1){ cout<<"Alice"; return 0; } if(b=1 && a!=1){ cout<<"Bob"; return 0; } if(a>b){ cout<<"Alice"; return 0; } else cout<<"Bob"; #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"; return 0; } if(a=1 && b!=1){ cout<<"Alice"; return 0; } if(b=1 && a!=1){ cout<<"Bob"; return 0; } if(a>b){ cout<<"Alice"; return 0; } else cout<<"Bob"; return 0; }
a.cc: In function 'int main()': a.cc:35:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 35 | int main() | ^~ a.cc:35:9: note: remove parentheses to default-initialize a variable 35 | int main() | ^~ | -- a.cc:35:9: note: or replace parentheses with braces to value-initialize a variable a.cc:36:1: error: a function-definition is not allowed here before '{' token 36 | { | ^ a.cc:62:2: error: expected '}' at end of input 62 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s874365020
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"; return 0; } if(a=1 && b!=1){ cout<<"Alice"; return 0; } if(b=1 && a!=1){ cout<<"Bob"; return 0; } if(a>b){ cout<<"Alice"; return 0; } else cout<<"Bob"; return 0; } }
a.cc:35:1: error: expected declaration before '}' token 35 | } | ^
s682332884
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"; return 0; } if(a=1 && b!=1){ cout<<"Alice"; return 0; } if(b=1 && a!=1){ cout<<"Bob"; return 0; } if(a>b){ cout<<"Alice"; return 0; } else cout<<"Bob"; #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b){ cout<<"Draw"; return 0; } if(a=1 && b!=1){ cout<<"Alice"; return 0; } if(b=1 && a!=1){ cout<<"Bob"; return 0; } if(a>b){ cout<<"Alice"; return 0; } else cout<<"Bob"; return 0; } }
a.cc: In function 'int main()': a.cc:35:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 35 | int main() | ^~ a.cc:35:9: note: remove parentheses to default-initialize a variable 35 | int main() | ^~ | -- a.cc:35:9: note: or replace parentheses with braces to value-initialize a variable a.cc:36:1: error: a function-definition is not allowed here before '{' token 36 | { | ^
s861828491
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(); for (int i = 1; i < a; i++) { for (int j = 1; j < b; j++) { if (a == 1 || a > b) { System.out.println("Alice"); } else if (b == 1 || b > a) { System.out.println("Bob"); } else if (a == b) { System.out.println("Draw"); } } } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s819540889
p03803
C++
#include<iostream> using namespace std; int main(){ int m,l; cin>>m>>l; if(m==1&&m!=l){ cout<<"Alice"; } else if(l==1&&l!=m){ cout<<"Bob"; } else if(m>l){ cout<<"Alice"; } else if(m<l){ cout<<"Bob"; } else if(a==b){ cout<<"Draw"; } }
a.cc: In function 'int main()': a.cc:18:9: error: 'a' was not declared in this scope 18 | else if(a==b){ | ^ a.cc:18:12: error: 'b' was not declared in this scope 18 | else if(a==b){ | ^
s523414003
p03803
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>x>>y; if(x==1&&x!=y){ cout<<"Alice"; }else if(y==1&&y!=x){ cout<<"Bob"; }else if(x>y){ cout<<"Alice"; }else if(x<y){ cout<<"Bob"; }else if(x==y){ cout<<"Draw"; } }
a.cc: In function 'int main()': a.cc:5:14: error: 'x' was not declared in this scope 5 | cin>>x>>y; | ^ a.cc:5:17: error: 'y' was not declared in this scope 5 | cin>>x>>y; | ^
s809087759
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() {int a;int b;cin>>a>>b; if(a==b) {cout<<"draw";} if(b!=1) {if(a>b||a=1) {cout<<"alice";}} if(a!=1) {if(b>a||b=1) {cout<<"bob";}} return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: lvalue required as left operand of assignment 8 | {if(a>b||a=1) | ~~~^~~ a.cc:11:8: error: lvalue required as left operand of assignment 11 | {if(b>a||b=1) | ~~~^~~
s426014685
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() {int a;int b;cin>>a>>b; if(a==b) {cout<<"draw";} if(b!=1) {if(a>b||a==1) {cout<<"alice";}} if(a!=1) {if(b>a||b==1) {cout<<"bob";}} return 0;
a.cc: In function 'int main()': a.cc:13:10: error: expected '}' at end of input 13 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | {int a;int b;cin>>a>>b; | ^
s093343833
p03803
C++
#include <iostream> using namespace std; int main() { cin>>a>>b; if((a<=13)&&(a>=1)) if((b<=13)&&(b>=1)) if((a==1)&&(a!=b)) cout<<"Alice"; else if((b==1)&&(b!=a)) cout<<"Bob"; else if(a==b) cout<<"Draw"; else { if(b>a) cout<<"Bob"; else if(a>b) cout<<"Alice"; } return 0; }
a.cc: In function 'int main()': a.cc:8:6: error: 'a' was not declared in this scope 8 | cin>>a>>b; | ^ a.cc:8:9: error: 'b' was not declared in this scope 8 | cin>>a>>b; | ^
s073787814
p03803
C++
#include <iostream> using namespace std; int main() { cin>>a>>b; if((a<=13)&&(a>=1)) if((b<=13)&&(b>=1)) if((a==1)&&(a!=b)) cout<<"Alice"; else if((b==1)&&(b!=a)) cout<<"Bob"; else if(a==b) cout<<"Draw"; else { if(b>a) cout<<"Bob"; else if(a>b) cout<<"Alice"; } return 0; }
a.cc: In function 'int main()': a.cc:8:6: error: 'a' was not declared in this scope 8 | cin>>a>>b; | ^ a.cc:8:9: error: 'b' was not declared in this scope 8 | cin>>a>>b; | ^
s499316817
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() {int A;int B;cin>>A>>B; if(A==1&&b!=1) {cout<<"ALICE";} if(A>B&&B!=1) {cout<<"ALICE";} if(B==1&&a!=1) {cout<<"BOB";} if(B>A&&A!=1) {cout<<"BOB";} if(A==B) {cout<<"DRAW";} return 0; }
a.cc: In function 'int main()': a.cc:5:10: error: 'b' was not declared in this scope 5 | if(A==1&&b!=1) | ^ a.cc:9:10: error: 'a' was not declared in this scope 9 | if(B==1&&a!=1) | ^
s393824923
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() {int A;int B;cin>>A>>B; if(A==1&&b!=1) {cout<<"ALICE";} if(A>B) {cout<<"ALICE";} if(B==1&&a!=1) {cout<<"BOB";} if(B>A) {cout<<"BOB";} if(A==B) {cout<<"DRAW";} return 0; }
a.cc: In function 'int main()': a.cc:5:10: error: 'b' was not declared in this scope 5 | if(A==1&&b!=1) | ^ a.cc:9:10: error: 'a' was not declared in this scope 9 | if(B==1&&a!=1) | ^
s959609373
p03803
C++
TC+2 level zero week 1 contest End: 2019-07-19 16:30 UTC+2 96:34:23 Elapsed: 96:34:23 Running Remaining: 71:25:36 Overview Problem Status Rank (96:34:18) 3 Comments A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Time limit 2000 ms Memory limit 262144 kB K - One Card Poker All Copyright Reserved © 2010-2019 Xu Han Server Time: 2019-07-16 17:04:23 UTC+2 #20496565 | Hassan_araby10's solution for [Problem K] Status Wrong Answer Length 253 Lang C++14 (GCC 5.3.0) Submitted 2019-07-16 17:02:52 Shared 0.0 / 10.0 Select Code #include<bits/stdc++.h> using namespace std; int main() {int A;int B;cin>>A>>B; if(A>=1&&B>=1) {if(A<=13&&B<=13) { if(A==1) {cout<<"ALICE";} if(A>B) {cout<<"ALICE";} if(B==1) {cout<<"BOB";} if(B>A) {cout<<"BOB";} if(A==B) {cout<<"DRAW";} } } return 0; }
a.cc:44:24: error: extended character © is not valid in an identifier 44 | All Copyright Reserved © 2010-2019 Xu Han | ^ a.cc:47:11: error: "|" is not a valid filename 47 | #20496565 | Hassan_araby10's solution for [Problem K] | ^ a.cc:47:27: warning: missing terminating ' character 47 | #20496565 | Hassan_araby10's solution for [Problem K] | ^ a.cc:53:12: error: too many decimal points in number 53 | C++14 (GCC 5.3.0) | ^~~~~ a.cc:1:1: error: 'TC' does not name a type 1 | TC+2 | ^~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:60: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'siz
s547632470
p03803
C++
#include <bits/stdc++.h> using namespace std; int main{ int A,B; cin>>A>>B; if((1<=A<=13)&&(1<=A<=13)){ if(A==B){ cout<<"Drawn"; } if((A>B)&&(B !=1)) { cout<<"Alice"; } else { cout<<"Bob"; }} return 0;}
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:2: error: expected primary-expression before 'int' 4 | int A,B; | ^~~ a.cc:4:2: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:1: error: 'cin' does not name a type 5 | cin>>A>>B; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if((1<=A<=13)&&(1<=A<=13)){ | ^~ a.cc:19:1: error: expected unqualified-id before 'return' 19 | return 0;} | ^~~~~~ a.cc:19:10: error: expected declaration before '}' token 19 | return 0;} | ^
s567753571
p03803
C++
#include <bits/stdc++.h> using namespace std; int main{ int A,B; cin>>A>>B; if(A==B){ cout<<"Drawn"; } if((A>B)&&(B!=1)) { cout<<"Alice"; } else { cout<<"Bob"; } return 0;}
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:2: error: expected primary-expression before 'int' 4 | int A,B; | ^~~ a.cc:4:2: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:1: error: 'cin' does not name a type 5 | cin>>A>>B; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if(A==B){ | ^~ a.cc:9:2: error: expected unqualified-id before 'if' 9 | if((A>B)&&(B!=1)) | ^~ a.cc:13:1: error: expected unqualified-id before 'else' 13 | else | ^~~~ a.cc:17:1: error: expected unqualified-id before 'return' 17 | return 0;} | ^~~~~~ a.cc:17:10: error: expected declaration before '}' token 17 | return 0;} | ^
s671831102
p03803
C++
#include <bits/stdc++.h> using namespace std; int main{ int A ,B ; cin>>A>>B; if(A==B){ cout<<"Drawn"; } else if((A>B) &&( B!=1) ) { cout<<"Alice"; } else { cout<<"Bob"; } return 0;}
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:2: error: expected primary-expression before 'int' 4 | int A ,B ; | ^~~ a.cc:4:2: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:1: error: 'cin' does not name a type 5 | cin>>A>>B; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if(A==B){ | ^~ a.cc:9:1: error: expected unqualified-id before 'else' 9 | else if((A>B) &&( B!=1) ) | ^~~~ a.cc:13:1: error: expected unqualified-id before 'else' 13 | else | ^~~~ a.cc:17:3: error: expected unqualified-id before 'return' 17 | return 0;} | ^~~~~~ a.cc:17:12: error: expected declaration before '}' token 17 | return 0;} | ^
s994473927
p03803
C++
#include <bits/stdc++.h> using namespace std; int main{ int A,B; cin>>A>>B; if(A==B){ cout<<"Drawn"; } else if(A>B&&B!=1) { cout<<"Alice"; } else { cout<<"Bob"; }}
a.cc:3:5: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:2: error: expected primary-expression before 'int' 4 | int A,B; | ^~~ a.cc:4:2: error: expected '}' before 'int' a.cc:3:9: note: to match this '{' 3 | int main{ | ^ a.cc:5:1: error: 'cin' does not name a type 5 | cin>>A>>B; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if(A==B){ | ^~ a.cc:9:1: error: expected unqualified-id before 'else' 9 | else if(A>B&&B!=1) | ^~~~ a.cc:13:1: error: expected unqualified-id before 'else' 13 | else | ^~~~ a.cc:16:2: error: expected declaration before '}' token 16 | }} | ^
s079362088
p03803
C++
TC+2 level zero week 1 contest End: 2019-07-19 16:30 UTC+2 96:34:23 Elapsed: 96:34:23 Running Remaining: 71:25:36 Overview Problem Status Rank (96:34:18) 3 Comments A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Time limit 2000 ms Memory limit 262144 kB K - One Card Poker All Copyright Reserved © 2010-2019 Xu Han Server Time: 2019-07-16 17:04:23 UTC+2 #20496565 | Hassan_araby10's solution for [Problem K] Status Wrong Answer Length 253 Lang C++14 (GCC 5.3.0) Submitted 2019-07-16 17:02:52 Shared 0.0 / 10.0 Select Code #include<bits/stdc++.h> using namespace std; int main() {int A;int B;cin>>A;cout<<" ";cin>>B; if(A>=1&&B>=1) {if(A<=13&&B<=13) { if(A==1) {cout<<"ALICE";} if(A>B) {cout<<"ALICE";} if(B==1) {cout<<"BOB";} if(B>A) {cout<<"BOB";} if(A==B) {cout<<"DRAW";} } } return 0; }
a.cc:44:24: error: extended character © is not valid in an identifier 44 | All Copyright Reserved © 2010-2019 Xu Han | ^ a.cc:47:11: error: "|" is not a valid filename 47 | #20496565 | Hassan_araby10's solution for [Problem K] | ^ a.cc:47:27: warning: missing terminating ' character 47 | #20496565 | Hassan_araby10's solution for [Problem K] | ^ a.cc:53:12: error: too many decimal points in number 53 | C++14 (GCC 5.3.0) | ^~~~~ a.cc:1:1: error: 'TC' does not name a type 1 | TC+2 | ^~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:60: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'siz
s650834685
p03803
C++
#include<bits/stdc++.h> using namespace std; int main() {int A;int N;cin>>A>>B; if(A>=1&&B>=1) {if(A<=13&&B<=13) { if(A==1) {cout<<"ALICE";} if(A>B) {cout<<"ALICE";} if(B==1) {cout<<"BOB";} if(B>A) {cout<<"BOB";} if(A==B) {cout<<"DRAW";} } } return 0; }
a.cc: In function 'int main()': a.cc:4:22: error: 'B' was not declared in this scope 4 | {int A;int N;cin>>A>>B; | ^
s352135220
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; scanf("%d%d",&a,&b); if(a==b) printf("Draw"); if((a==1)||(a>b&&b!=1&&b!=1)) printf("Alice") else printf("Bob"); }
a.cc: In function 'int main()': a.cc:9:24: error: expected ';' before 'else' 9 | printf("Alice") | ^ | ; 10 | else | ~~~~
s246584490
p03803
C++
#clude<iostream> using namespace std; int main(){ int A; int B; cin>>A; cin>>B; if(13>=A>=1&&13>=B>=1){ if((A>B||A==1)&&B!=1) cout<<"Alice"; else if(B>A||B==1&&A!=1) cout<<"Bob"; else if(A==B) cout<<"Draw"; } else cout<<"wrong input"; return 0; }
a.cc:1:2: error: invalid preprocessing directive #clude; did you mean #include? 1 | #clude<iostream> | ^~~~~ | include a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>A; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #clude<iostream> a.cc:10:17: error: 'cout' was not declared in this scope 10 | cout<<"Alice"; | ^~~~ a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:12:17: error: 'cout' was not declared in this scope 12 | cout<<"Bob"; | ^~~~ a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:14:17: error: 'cout' was not declared in this scope 14 | cout<<"Draw"; | ^~~~ a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:17:25: error: 'cout' was not declared in this scope 17 | cout<<"wrong input"; | ^~~~ a.cc:17:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
s839201546
p03803
C++
clude<iostream> using namespace std; int main(){ int A; int B; cin>>A; cin>>B; if(13>=A>=1&&13>=B>=1){ if((A>B||A==1)&&B!=1) cout<<"Alice"; else if(B>A||B==1&&A!=1) cout<<"Bob"; else if(A==B) cout<<"Draw"; } else cout<<"wrong input"; return 0; }
a.cc:1:1: error: 'clude' does not name a type 1 | clude<iostream> | ^~~~~ a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin>>A; | ^~~ a.cc:10:17: error: 'cout' was not declared in this scope 10 | cout<<"Alice"; | ^~~~ a.cc:12:17: error: 'cout' was not declared in this scope 12 | cout<<"Bob"; | ^~~~ a.cc:14:17: error: 'cout' was not declared in this scope 14 | cout<<"Draw"; | ^~~~ a.cc:17:25: error: 'cout' was not declared in this scope 17 | cout<<"wrong input"; | ^~~~
s480626600
p03803
C++
// K - One Card Poker #include<bits/stdc++.h> #include<stdio.h> using namespace std; int main (){ int s[12]={2,3,4,5,6,7,8,9,10,11,12,13,1}; int a,b; cin>>a>>b; int f=0,t=0; for (int i=0;i<12;i++){ if (a==s[i]) f=i; if(b==s[i]) t=i; } if (f>t) cout <<"Alice"<<endl; else if (f<t) cout<<"Bod"<<endl; else cout <<"Draw"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:42: error: too many initializers for 'int [12]' 6 | int s[12]={2,3,4,5,6,7,8,9,10,11,12,13,1}; | ^
s373229113
p03803
C++
#include<iodtream> using namespace std; int main() { int A ,B; cin>>A>>B; if(A<=13 && A>=1){ if(B<=13 && B>=1){ if(A>B && B!=1){ cout<<"Alice"; } else if(A>B && B==1){ cout<<"Bob"; } if(A<B && A!=1){ cout<<"Bob"; } else if(A<B && A==1){ cout<<"Alice"; } else if(A==B){ cout<<"Draw"; } } else{ cout<<"Error"; } } else{ cout<<"Error"; } return 0; }
a.cc:1:9: fatal error: iodtream: No such file or directory 1 | #include<iodtream> | ^~~~~~~~~~ compilation terminated.
s851937277
p03803
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==1 && b==1)||(a==b)) cout<<"Draw"; else if(a==1 &&b!=1) cout<<"Alice"; else if(b==1 &&a!=1) cout<<"Bob"; else if(a>b) cout<<"Alice"; else if(a<b) cout<<"Bob"; return 0; }
a.cc: In function 'int main()': a.cc:6:25: error: expected primary-expression before '||' token 6 | if(a==1 && b==1)||(a==b)) | ^~
s980456073
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; if(A==B) cout<<"Draw"; else if ((A>B&&B!1)||(A==1)) cout<<"Alice"; else if ((A<B&&A!1)||(B==1)) cout<<"Bob"; }
a.cc: In function 'int main()': a.cc:8:25: error: expected ')' before '!' token 8 | else if ((A>B&&B!1)||(A==1)) | ~ ^ | ) a.cc:9:30: error: expected ')' before ';' token 9 | cout<<"Alice"; | ^ | ) a.cc:8:17: note: to match this '(' 8 | else if ((A>B&&B!1)||(A==1)) | ^ a.cc:10:25: error: expected ')' before '!' token 10 | else if ((A<B&&A!1)||(B==1)) | ~ ^ | ) a.cc:11:28: error: expected ')' before ';' token 11 | cout<<"Bob"; | ^ | ) a.cc:10:17: note: to match this '(' 10 | else if ((A<B&&A!1)||(B==1)) | ^
s611288179
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(A != 1 && B == 1) { cout<<"Bob"<<endl; }else if(A == 1 && B == 1) { cout<<"Draw"<<endl; }else{ if(A<B) { cout<<"Bob"<<endl; }else if(A > B) { cout<<"Alice"<<endl; }else { cout<<"Draw"<<endl; } } }
a.cc: In function 'int main()': a.cc:8:9: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 8 | cin>>A>B; | ~~~~~~^~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_istream<char>} a.cc:8:9: note: candidate: 'operator>(int, int)' (built-in) 8 | cin>>A>B; | ~~~~~~^~ a.cc:8:9: note: no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stl_iterator.h:462:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 462 | operator>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:462:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 507 | operator>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:507:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1714 | operator>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1714:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1774 | operator>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1774:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 8 | cin>>A>B; | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51: /usr/include/c++/14/bits/stl_pair.h:1058:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1058 | operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1058:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::pair<_T1, _T2>' 8 | cin>>A>B; | ^ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:695:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 695 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:695:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | cin>>A>B; | ^ /usr/include/c++/14/string_view:702:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' 702 | operator> (basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:702:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 8 | cin>>A>B; | ^ /usr/include/c++/14/string_view:710:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)' 710 | operator> (__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/14/string_view:710:5: note: template argument deduction/substitution failed: a.cc:8:10: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/basic_string.h:3915:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3915 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3915:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/basic_string.h:3929:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 3929 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3929:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 8 | cin>>A>B; | ^ /usr/include/c++/14/bits/basic_string.h:3942:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3942 | operator>(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:3942:5: note: template argument deduction/substitution failed: a.cc:8:10: note: mismatched types 'const _CharT*' and 'std::basic_istream<char>' 8 | cin>>A>B; | ^ In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/14/string:68: /usr/include/c++/14/tuple:2619:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)' 2619 | operator>(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/14/tuple:2619:5: note: template argument deduction/substitution failed: a.cc:8:10: note: 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::tuple<_UTypes ...>' 8 | cin>>A>B; | ^
s898589291
p03803
C++
using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=1&&a<=13&&b>=1&&b<=13){ 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<<"Bob"<<endl;} }
a.cc: In function 'int main()': a.cc:4:9: error: 'cin' was not declared in this scope 4 | 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: 'cout' was not declared in this scope 7 | cout<<"Draw"<<endl; | ^~~~ a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:7:23: error: 'endl' was not declared in this scope 7 | cout<<"Draw"<<endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | using namespace std; a.cc:9:17: error: 'cout' was not declared in this scope 9 | cout<<"Alice"<<endl; | ^~~~ a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:32: error: 'endl' was not declared in this scope 9 | cout<<"Alice"<<endl; | ^~~~ a.cc:9:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' a.cc:11:17: error: 'cout' was not declared in this scope 11 | cout<<"Bob"<<endl; | ^~~~ a.cc:11:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:11:30: error: 'endl' was not declared in this scope 11 | cout<<"Bob"<<endl; | ^~~~ a.cc:11:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' a.cc:13:13: error: 'cout' was not declared in this scope 13 | cout<<"Alice"<<endl; | ^~~~ a.cc:13:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:13:28: error: 'endl' was not declared in this scope 13 | cout<<"Alice"<<endl; | ^~~~ a.cc:13:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' a.cc:15:13: error: 'cout' was not declared in this scope 15 | cout<<"Bob"<<endl;} | ^~~~ a.cc:15:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:15:26: error: 'endl' was not declared in this scope 15 | cout<<"Bob"<<endl;} | ^~~~ a.cc:15:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
s115715430
p03803
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=1&&a<=13&&b>=1&&b<=13){ 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<<"Bob"<<endl; }
a.cc: In function 'int main()': a.cc:20:10: error: expected '}' at end of input 20 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s580727181
p03803
C++
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=1&&a<=13&&b>=1&&b<=13){ 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<<"Bob"<<endl; }
a.cc: In function 'int main()': a.cc:20:10: error: expected '}' at end of input 20 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s992577691
p03803
C++
#include <bits/stdc++.h> 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 if (a=b) { cout << "Draw" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: expected ';' before '}' token 7 | a=14 | ^ | ; 8 | } | ~ a.cc:10:9: error: expected ';' before '}' token 10 | b=14 | ^ | ; 11 | } | ~
s390923803
p03803
C++
#include <bits/stdc++.h> 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=b) { cut << "Draw" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:9: error: 'cut' was not declared in this scope 13 | cut << "Draw" << endl; | ^~~
s215295718
p03803
C++
#include <bits/stdc++.h> 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=b) { cut << "Draw" << endl; } return 0; }
a.cc:10:22: warning: missing terminating " character 10 | cout << ""Bob" << endl; | ^ a.cc:10:22: error: missing terminating " character 10 | cout << ""Bob" << endl; | ^~~~~~~~~~ a.cc: In function 'int main()': a.cc:10:17: error: unable to find string literal operator 'operator""Bob' with 'const char [1]', 'long unsigned int' arguments 10 | cout << ""Bob" << endl; | ^~~~~ a.cc:13:9: error: 'cut' was not declared in this scope 13 | cut << "Draw" << endl; | ^~~
s538218346
p03803
C
#include<stdio.h> int main(void) { fgets(str,sizeof(str),stdin); sscanf(str,"%d%d",&alice,&bob); if (alice == bob) { printf("Draw\n"); } else { if(alice == 1) { printf("Alice\n"); } else { if(bob == 1) { printf("Bob\n"); } else { if ((alice - bob) > 0) { printf("Alice\n"); } else { printf("Bob\n"); } } } } return 0; }
main.c: In function 'main': main.c:4:9: error: 'str' undeclared (first use in this function) 4 | fgets(str,sizeof(str),stdin); | ^~~ main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in main.c:5:22: error: 'alice' undeclared (first use in this function) 5 | sscanf(str,"%d%d",&alice,&bob); | ^~~~~ main.c:5:29: error: 'bob' undeclared (first use in this function) 5 | sscanf(str,"%d%d",&alice,&bob); | ^~~
s735169595
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int char1,char2; cin>>char1>>char2; int strength[]=[2,3,4,5,6,7,8,9,10,11,12,13,1]; int alice=0; int bob=0; for(int i=0 ; i<13 ; ++i) { if(char1==strength[i]) alice=i; if(char2==strength[i]) bob=i; } if(alice>bob) cout<<"Alice"; else if(alice<bob) cout<<"Bob"; else cout<<"Draw"; cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:19: error: expected identifier before numeric constant 8 | int strength[]=[2,3,4,5,6,7,8,9,10,11,12,13,1]; | ^ a.cc:8:20: error: expected ']' before ',' token 8 | int strength[]=[2,3,4,5,6,7,8,9,10,11,12,13,1]; | ^ | ] a.cc: In lambda function: a.cc:8:20: error: expected '{' before ',' token a.cc: In function 'int main()': a.cc:8:18: error: initializer fails to determine size of 'strength' 8 | int strength[]=[2,3,4,5,6,7,8,9,10,11,12,13,1]; | ^~ a.cc:8:18: error: array must be initialized with a brace-enclosed initializer a.cc:8:21: error: expected unqualified-id before numeric constant 8 | int strength[]=[2,3,4,5,6,7,8,9,10,11,12,13,1]; | ^
s114055789
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{cout<<"Draw"<<endl;} }
a.cc: In function 'int main()': a.cc:6:8: error: 'a' was not declared in this scope 6 | if(a==1){ | ^ a.cc:9:8: error: 'b' was not declared in this scope 9 | if(b==1){ | ^ a.cc:12:8: error: 'a' was not declared in this scope 12 | if(a>b){cout<<"Alice"<<endl;} | ^ a.cc:12:10: error: 'b' was not declared in this scope 12 | if(a>b){cout<<"Alice"<<endl;} | ^
s107747428
p03803
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; if(a=1&&b=1){ 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 if(a<b){ cout << "Bob" << endl; } else if(a=b){ cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:7:9: error: lvalue required as left operand of assignment 7 | if(a=1&&b=1){ | ~^~~
s246556440
p03803
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; if (A < B && A == 1) { cout << "Alice" << endl; } else if (A < B && A != 1) { cout << "Bob" << endl; } else if (A > B && B == 1) { cout << "Bob" << endl; } else if (A > B && B != 1) { cout << "Alice" << end; } else { cout << "Draw" << endl; } }
a.cc: In function 'int main()': a.cc:18:23: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 18 | cout << "Alice" << end; | ~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 301 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const void*' 301 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:306:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
s694469118
p03803
C++
#include<iostream> using namespace std; int mian(){ int a, b; cin >> a >> b; if(a>b){ if(b==1){ cout<<"Bob"<<endl; } cout<<"Alice"<<endl; }else if(a<b){ if(a==1){ cout<<"Alice"<<endl; } cout<<"Bob"<<endl; }else{ cout<<"Draw"<<endl; } }
a.cc: In function 'int mian()': a.cc:19:1: warning: no return statement in function returning non-void [-Wreturn-type] 19 | } | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s647278836
p03803
C++
#include<bits/stdc++.h> using namespace std; int mian(){ int a, b; cin >> a >> b; a++,b++; if(a>b){ cout<<"Alice"<<endl; }else if(a<b){ cout<<"Bob"<<endl; }else{ cout<<"Draw"<<endl; } }
a.cc: In function 'int mian()': a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type] 14 | } | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s233477448
p03803
C++
//--https://kenkoooo.com/atcoder/#/table/soma62jp #include <iostream> #include <string> #include <cmath> #include <sstream> #include <iomanip> using namespace std; int main(int argc, char* argv[]) { int A,B; int a,b; cin >> A >> B; a=A;b=B if(a==1) a=14; if(b==1) b=14; if(a-b>0){ cout << "Alice" << endl; }else if(b-a>0){ cout << "Bob" << endl; }else{ cout << "Draw" << endl; } return 0; }
a.cc: In function 'int main(int, char**)': a.cc:20:16: error: expected ';' before 'if' 20 | a=A;b=B | ^ | ; 21 | 22 | if(a==1) a=14; | ~~