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" <<e... | a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before ']' token
12 | b = 14
| ^
| ;
13 | ]
| ~
a.cc:19:5: error: expected '}' before 'else'
19 | else if(a<b){
| ^~~~
a.cc:11:15: note: to match this '{'
11 ... |
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;
}
e... | 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'
... |
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 <<... | 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 | ... |
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 thi... |
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==... | 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.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.print... | 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 thi... |
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" ... | 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;
}el... | 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 ')'... |
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 ')'... |
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])... | 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];
}
}
b... | 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);
... | 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";
| ~~~~^ ~~~~~~~
| | |
| | ... |
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.... | 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... | 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] ==... | 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 << df... |
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] ==... | 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 << df... |
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=lo... | 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;
| ~~~~~~~~~^~
| | |
| ... |
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){
... | 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... |
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" << ... | 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 re... |
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 {ak... |
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
... | 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){
print... | 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("... |
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("Dr... |
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("Dr... |
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 ... |
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
... | 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;
}
e... | 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 repl... |
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;
}
el... | 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;
}
e... | 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 repl... |
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... | 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 © 20... | 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 terminati... |
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: '... |
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: '... |
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:... |
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: '... |
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 © 20... | 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 terminati... |
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 '<ios... |
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";
| ... |
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)
... | 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){
... | 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";
| ^
... |
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)
... | 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 st... |
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: e... |
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;
}
retur... | 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... |
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
{
... | 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)
... |
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<<"Alic... | 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];
| ^
... |
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;}
| ... |
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 << "B... | 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) {
... | 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 /... |
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 exi... |
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 exi... |
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" << en... | 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;
| ~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.