submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s130434168
p03813
C++
/*****/ #include <iostream> #include <array> #include <vector> #include <algorithm> #include <string> #include <cmath> #include <queue> #include <stack> #include <map> #include <iomanip> //cout << fixed << setprecision(桁数); #include <stdexcept> //#define int long long using namespace std; using ll = long long; usin...
a.cc: In function 'void Main()': a.cc:54:16: error: 'c' was not declared in this scope 54 | cin >> c; | ^
s428102972
p03813
C++
#include<bits/stdc++.h> using namespace std; typedef int q; typedef double w; typedef string s; int main(){ q x,k,y,n; cin>>x; if(x<1200)cout<<"ABC" else cout<<"ARC"; return 0;}
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before 'else' 9 | if(x<1200)cout<<"ABC" | ^ | ; 10 | else cout<<"ARC"; | ~~~~
s945107315
p03813
C++
x = int(input()) print('ARC' if x>=1200 else 'ABC')
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | print('ARC' if x>=1200 else 'ABC') | ^~~~~ a.cc:2:29: warning: multi-character character constant [-Wmultichar] 2 | print('ARC' if x>=1200 else 'ABC') | ^~~~~ a.cc:1:1: error: 'x' does not name ...
s580323483
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<'ABC'; } else { cout<<'ARC'; } }else{cout<<"no";} return 0; } else { cout<<"ARC"; } }else{cout<<"no";} return 0; } else { ...
a.cc:16:15: warning: multi-character character constant [-Wmultichar] 16 | cout<<'ABC'; | ^~~~~ a.cc:20:15: warning: multi-character character constant [-Wmultichar] 20 | cout<<'ARC'; | ^~~~~ a.cc:28:5: error: expected unqualified-id before 'else' 28 | ...
s002586643
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } }else{cout<<"no";} return 0; } else { cout<<m; } } return 0; }
a.cc:28:5: error: expected unqualified-id before 'else' 28 | else { | ^~~~ a.cc:33:1: error: expected declaration before '}' token 33 | } | ^ a.cc:34:5: error: expected unqualified-id before 'return' 34 | return 0; | ^~~~~~ a.cc:35:1: error: expected declaration before '}' to...
s586567971
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=3000 && r>=1){ if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } } return 0; } return 0; } return 0; }
a.cc:27:5: error: expected unqualified-id before 'return' 27 | return 0; | ^~~~~~ a.cc:28:1: error: expected declaration before '}' token 28 | } | ^ a.cc:32:5: error: expected unqualified-id before 'return' 32 | return 0; | ^~~~~~ a.cc:33:1: error: expected declaration before ...
s929139434
p03813
C++
#include <iostream> using namespace std; int main() { int r; cin>>r; if(r<=1200){ cout<<"ABC"; } else { cout<<"ARC"; } return 0; } return 0; }
a.cc:26:5: error: expected unqualified-id before 'return' 26 | return 0; | ^~~~~~ a.cc:27:1: error: expected declaration before '}' token 27 | } | ^
s452841520
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; ) { cout<<"ABC"; } else { cout<<"ARC"; } ; }
a.cc: In function 'int main()': a.cc:7:5: error: expected primary-expression before ')' token 7 | ) | ^ a.cc:11:5: error: 'else' without a previous 'if' 11 | else | ^~~~
s661023427
p03813
C++
#include <iostream> using namespace std; int main(){ int rate; cin >> rate; if (rate < 1200) cout << "ABC" << endl; else cout << "ARC" << enld; return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: 'enld' was not declared in this scope 9 | else cout << "ARC" << enld; | ^~~~
s287141011
p03813
C++
#include <iostream> int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");}
a.cc: In function 'int main()': a.cc:2:26: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 2 | int main(){int x;std::cin<<x;std::cout<<(x<1200?"ABC":"ARC");} | ~~~~~~~~^~~ | | | | ...
s598255256
p03813
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ int a; cin >> a; //if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o')){cout << "vowel" << endl;} //else{cout << "consonant" << endl;} //int x = a*b; //int y = c*d; if(x<1200){cout << "ABC" << endl;} ...
a.cc: In function 'int main()': a.cc:12:6: error: 'x' was not declared in this scope 12 | if(x<1200){cout << "ABC" << endl;} | ^
s469926843
p03813
C
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x<1200) printf("ABC\n"); else if printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:9:9: error: expected '(' before 'printf' 9 | printf("ARC\n"); | ^~~~~~ | (
s955187915
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) { Compute c1 = new Compute();//calc int count = 0; boolean sw = false; int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; double dMax = Double.MIN_VALUE; double dMin = Do...
Main.java:6: error: cannot find symbol Compute c1 = new Compute();//calc ^ symbol: class Compute location: class Main Main.java:6: error: cannot find symbol Compute c1 = new Compute();//calc ^ symbol: class Compute location: class Main 2 errors
s777345482
p03813
Java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(); int rate = sc.nextInt(); if(rate < 1200){ System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:6: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (actual a...
s214123657
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; if(n<1200)cout << "ABC" << endl; else()cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:7:8: error: expected primary-expression before ')' token 7 | else()cout << "ARC" << endl; | ^
s249532552
p03813
C++
#include<bits/stdc++.h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc: In function 'int main()': a.cc:7:22: error: 'ABC' was not declared in this scope 7 | if(n<1200 )cout << ABC << endl; | ^~~ a.cc:8:9: error: expected primary-expression before ')' token 8 | else () cout <<ARC<<endl; | ^
s044200993
p03813
C++
#include<bits/stdnc++,h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc:1:9: fatal error: bits/stdnc++,h: No such file or directory 1 | #include<bits/stdnc++,h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s292705591
p03813
C++
#include<bits/stdnc++.h> using namespace std; int main () { int n ; cin >> n ; if(n<1200 )cout << ABC << endl; else () cout <<ARC<<endl; }
a.cc:1:9: fatal error: bits/stdnc++.h: No such file or directory 1 | #include<bits/stdnc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s656768221
p03813
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { int x; cin ...
a.cc: In function 'int main()': a.cc:18:23: error: expected ';' before 'cout' 18 | else result = "ARC;" | ^ | ; 19 | cout << result << endl; | ~~~~
s567579637
p03813
C++
#include <bits/stdc++.h> #include <stdio.h> #include <numeric> using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define repone(i,n) for(int i=1;i<(int)(n);++i) #define repo(i,o,n) for(int i=o;i<(int)(n);++i) #define Rep(j,n) for(int j=0;j<(int)(n);++j) #define Repo(j,o,n) for(int j=o;j<(int)(n);++j) #d...
a.cc: In function 'int main()': a.cc:27:37: error: invalid operands of types 'const char [4]' and 'char' to binary 'operator<<' 27 | std::cout << (x<1200) ? "ABC":"ARC" << '\n'; | ~~~~~ ^~ ~~~~ | | | | ...
s177748822
p03813
C
#include<stdio.h> int main(){ int x; scanf("%d", &x); if(x < 1200){ printf("ABC") } else { printf("ARC") } return 0; }
main.c: In function 'main': main.c:9:30: error: expected ';' before '}' token 9 | printf("ABC") | ^ | ; 10 | } else { | ~ main.c:11:30: error: expected ';' before '}' token 11 | ...
s942622958
p03813
C
#include<stdio.h> int main(){ int x; scanf("%d", &x) if(x < 1200){ printf("ABC") } else { printf("ARC") } return 0; }
main.c: In function 'main': main.c:6:24: error: expected ';' before 'if' 6 | scanf("%d", &x) | ^ | ; 7 | 8 | if(x < 1200){ | ~~
s979308527
p03813
C++
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x < 1200) { print("ABC"); } else { print("ARC"); } return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'print' was not declared in this scope; did you mean 'printf'? 11 | print("ABC"); | ^~~~~ | printf a.cc:15:9: error: 'print' was not declared in this scope; did you mean 'printf'? 15 | print("ARC"); | ^~~~~...
s774051350
p03813
C++
#include <iostream> using namespace std; int main(void){ int x; cin >> x; if(x < 1200) cout << "ABC" << end; else cout << "ARC" <<endl; }
a.cc: In function 'int main()': a.cc:9:23: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | cout << "ABC" << end; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostream:41, from a...
s157682416
p03813
C++
n=int(input()) if(n<1200): print("ABC") else: print("ARC")
a.cc:1:1: error: 'n' does not name a type 1 | n=int(input()) | ^
s484122724
p03813
C++
#include <bits/stdc++.h> using namespace std; int x; int main () { cin >> x; if (x < 1200) cout "ABC" << endl; else cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:9:9: error: expected ';' before string constant 9 | cout "ABC" << endl; | ^~~~~~ | ;
s676850024
p03813
C++
#include <bits/stdc++.h> #define int long long #define ALL(v) (v).begin(),(v).end() #define Vi vector<int> #define pb push_back #define rep(i,a,b) for(int i=a;i<b;i++) #define repr(i,a,b) for(int i=a;i>b;i--) #define leng(n) (int)(log10(n)+1) #define INF 9000000000000000000 using namespace std; int gcd(int a,int b){re...
a.cc: In function 'int main()': a.cc:18:29: error: expected primary-expression before ',' token 18 | if(a<1200) cout << "ABC" <, endl; | ^
s661472068
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int A; cin >> A; if(A >= 1200){ cout << "ARC"; } else { cout << "ABC"; }
a.cc: In function 'int main()': a.cc:10:2: error: expected '}' at end of input 10 | } | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s190390907
p03813
Java
package at_coder; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class ABC_053_A { static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int ...
Main.java:9: error: class ABC_053_A is public, should be declared in a file named ABC_053_A.java public class ABC_053_A { ^ 1 error
s450556914
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; if(x<1200){ cout << "ABC" << endl; } else cout << "ARC" < endl; }
a.cc: In function 'int main()': a.cc:9:22: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | else cout << "ARC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/in...
s224718452
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; if(x<1200) cout << "ABC" << endl; else cout << "ARC" < endl; }
a.cc: In function 'int main()': a.cc:7:22: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | else cout << "ARC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/in...
s929165650
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; cout << maxx << endl; }
a.cc: In function 'int main()': a.cc:11:17: error: 'maxx' was not declared in this scope 11 | cout << maxx << endl; | ^~~~
s789121514
p03813
C++
x = int(input()) if x < 1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s638315589
p03813
C++
x = int(input()) if x < 1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) | ^
s161333288
p03813
C++
# include <bits/stdc++.h> int main() { int x; cin >> x; if (x < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> x; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std:...
s623705064
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int X = 0 ; scanf("%d" , &X); if(<=X<=3000) { if(X < 1200) printf("ABC"); else printf("ARC"); } return 0; }
a.cc: In function 'int main()': a.cc:9:4: error: expected primary-expression before '<=' token 9 | if(<=X<=3000) | ^~
s593533043
p03813
C++
#include<queue> #include<stack> #include<iostream> #include<math.h> #include<algorithm> #include<vector> #include<string> #include<windows.h> //#include<windows.h> using namespace std; #define Int int64_t #define dump(x) cout << (x) << endl #define fi first #define se second Int mod = 1e9 + 7; Int INF = 1e18; dou...
a.cc:8:9: fatal error: windows.h: No such file or directory 8 | #include<windows.h> | ^~~~~~~~~~~ compilation terminated.
s444152538
p03813
Java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); if(x<1200) { System.out.println("ABC"); } else { System.out.println("ARC"); } } }
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s855183332
p03813
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ double x; scanf("%ld",&x); if(x>1200) printf("ARC"); else printf("ABC"); return0;}
a.cc: In function 'int main()': a.cc:11:1: error: 'return0' was not declared in this scope 11 | return0;} | ^~~~~~~
s951481035
p03813
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int x; scanf("%d",&x); if(x>1200) printf("ARC"); else printf("ABC"); return0;}
a.cc: In function 'int main()': a.cc:11:1: error: 'return0' was not declared in this scope 11 | return0;} | ^~~~~~~
s340863314
p03813
C
#include <iostream> using namespace std; int main(){ int x; cin>>x; if(x>1200) cout<<"ARC"; else cout<<"ABC"; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s947480080
p03813
C
#include <bits/stdc++.h> using namespace std; int main(){ int x; scanf("%d",&x); if(x<1200) printf("ABC"); else printf("ARC"); return 0; }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s755007785
p03813
C++
#include<iostream> using namespace std; int main(){ int x; cin>>n; if(x<1200) cout<<"ABC" ; else cout<<"ARC"; }
a.cc: In function 'int main()': a.cc:5:6: error: 'n' was not declared in this scope 5 | cin>>n; | ^
s840999361
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int a; scanf("%d",&a); if(a<1200) printf("ABC"); else printf("ARC"); } }
a.cc:12:1: error: expected declaration before '}' token 12 | } | ^
s281937339
p03813
C
#include<bits/stdc++.h> using namespace std; int main() { int n; while(scanf("%d",&n)) { if(n<1200) printf("ABC"); else printf("ARC"); } }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s286365288
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A cin>>A; if(A<1200){ cout<<"ABC"<<endl; }else{ cout<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'cin' 5 | cin>>A; | ^~~ a.cc:6:12: error: 'A' was not declared in this scope 6 | if(A<1200){ | ^
s229271267
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; if(N>=1200) cout<<ARC; else cout<<ABC; }
a.cc: In function 'int main()': a.cc:8:7: error: 'ARC' was not declared in this scope 8 | cout<<ARC; | ^~~ a.cc:10:7: error: 'ABC' was not declared in this scope 10 | cout<<ABC; | ^~~
s136951619
p03813
C++
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; int main() { int n; cin >> n; if (n < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << Endl; } }
a.cc: In function 'int main()': a.cc:16:34: error: 'Endl' was not declared in this scope 16 | cout << "ARC" << Endl; | ^~~~
s054328178
p03813
C++
#include <bits\stdc++.h> using namespace std; int main(){ int x; cin>>x; if (x<1200) cout <<"ABC"; else cout <<"ARC"; }
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s291871894
p03813
C++
v#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; cout<<(x<1200?"ABC":"ARC")<<endl; return 0; }
a.cc:1:2: error: stray '#' in program 1 | v#include<bits/stdc++.h> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include<bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin>>x; | ^~~ a.cc:7:5: error: 'cout' was not...
s107870506
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >>x; if(x<1200){ cout <<"ABC; } else{ cout <<"ARC": } }
a.cc:9:12: warning: missing terminating " character 9 | cout <<"ABC; | ^ a.cc:9:12: error: missing terminating " character 9 | cout <<"ABC; | ^~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before '}' token 10 | } | ^ a.c...
s576155320
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >>x; if(x<1200){ cout <<"ABC; } else{ cout <<"ARC" ; } }
a.cc:9:12: warning: missing terminating " character 9 | cout <<"ABC; | ^ a.cc:9:12: error: missing terminating " character 9 | cout <<"ABC; | ^~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before '}' token 10 | } | ^
s175123857
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x;cin>>x; cout<(x<1200?"ABC":"ARC")<<endl; }
a.cc: In function 'int main()': a.cc:6:34: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout<(x<1200?"ABC":"ARC")<<endl; | ~~~~~~~~~~~~~~~~~~~~^~~~~~
s476339390
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [4]') 11 | cin<<"ARC"<<endl; | ~~~^~~~~~~ | | | | | const char [4] | std::istream {aka ...
s415465208
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:11:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [4]') 11 | cin<<"ARC"<<endl; | ~~~^~~~~~~ | | | | | const char [4] | std::istream {aka ...
s711565224
p03813
C++
#include <bits/stdcpp.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cin<<"ARC"<<endl; } return 0; }
a.cc:1:10: fatal error: bits/stdcpp.h: No such file or directory 1 | #include <bits/stdcpp.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s918954970
p03813
C++
#include <stdio.h> using namespace std; int main(){ int x; cin>>x; if(x<1200){ cout<<"ABC"<<endl; }else{ cout<<"ARC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>x; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <stdio.h> +++ |+#include <iostream> 2 | using namespace std;...
s032491831
p03813
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s624659012
p03813
C++
#include<stdio.h> void main() { int a; scanf("%d", &a); if(a < 1200) { printf("ABC"); } else { printf("ARC"); } return 0; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() { | ^~~~
s717343036
p03813
C++
#include <iostream> #include <vector> #include <map> #include <algorithm> #include <cstdlib> #include <cmath> #include <numeric> #include <tuple> #include <stack> #define rep(i,n) for (int i = 0; i < (n); ++i) #define all(x) x.begin(),x.end() #define rall(x) x.rbegin(),x.rend() #define print(s) cout << s << endl typede...
a.cc: In function 'int main()': a.cc:30:20: error: expected initializer before '>>' token 30 | int a, cin >> a; | ^~
s184576889
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if(x<1200){ printf(“ABC”); } else{ printf(“ARC”); } }
a.cc:8:8: error: extended character “ is not valid in an identifier 8 | printf(“ABC”); | ^ a.cc:8:8: error: extended character ” is not valid in an identifier a.cc:11:8: error: extended character “ is not valid in an identifier 11 | printf(“ARC”); | ^ a.cc:11:8: error: extended characte...
s093544682
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1200){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:...
s303894495
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1000){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:...
s799188029
p03813
Java
#include <iostream> using namespace std; int main(){ int x; cin >> x; if (x < 1000){ cout << "ABC" << endl; } else if (x >= 1200){ cout << "ARC" << endl; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >> x; ^ Main.java:9: error: not a statement cout << "ABC" << endl; ^ Main.java:...
s204167923
p03813
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int x; cin >> x; if (x<1200){ printf('ABC'); }else{ printf('ARC'); } }
a.cc:9:12: warning: multi-character character constant [-Wmultichar] 9 | printf('ABC'); | ^~~~~ a.cc:11:12: warning: multi-character character constant [-Wmultichar] 11 | printf('ARC'); | ^~~~~ a.cc: In function 'int main()': a.cc:9:12: error: invalid conversion from 'in...
s669537278
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main(){ cin>>x; if (x < 1200) printf(ABC); else printf(ARC); return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'ABC' was not declared in this scope 9 | printf(ABC); | ^~~ a.cc:11:10: error: 'ARC' was not declared in this scope 11 | printf(ARC); | ^~~
s063264194
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main(){ cin>>x; if (x<1200) printf(ABC); else printf(ARC); return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'ABC' was not declared in this scope 9 | printf(ABC); | ^~~ a.cc:11:10: error: 'ARC' was not declared in this scope 11 | printf(ARC); | ^~~
s682982008
p03813
C++
include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ARC") return 0; }
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token 1 | include(iostream) | ^ a.cc:6:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive] ...
s752239040
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main() { printf(x < 1200 ? ""ABC"" : ""ARC""); return 0; }
a.cc: In function 'int main()': a.cc:7:26: error: unable to find string literal operator 'operator""ABC' with 'const char [1]', 'long unsigned int' arguments 7 | printf(x < 1200 ? ""ABC"" : ""ARC""); | ^~ a.cc:7:36: error: unable to find string literal operator 'operator""ARC' with ...
s911700667
p03813
C++
#include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ABC") return 0; }
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include(iostream) | ^ a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:3:7: error: expected nested-name-specifier before 'namespacestd' 3 | using namespacestd; | ^~...
s056956609
p03813
C++
#include<iostream> #include<cstdio> using namespace std; int x; int main() { cin >> xj if (x < 1200) printf("ABC"); else printf("ABC"); return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: 'xj' was not declared in this scope; did you mean 'x'? 7 | cin >> xj | ^~ | x a.cc:10:3: error: 'else' without a previous 'if' 10 | else | ^~~~
s095809227
p03813
C++
#include(iostream) #include(cstdio) using namespacestd; int x; intmain() { cin >> x; if(x < 1200) printf("ABC") else printf("ABC") return 0; }
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME> 1 | #include(iostream) | ^ a.cc:2:9: error: #include expects "FILENAME" or <FILENAME> 2 | #include(cstdio) | ^ a.cc:3:7: error: expected nested-name-specifier before 'namespacestd' 3 | using namespacestd; | ^~...
s979698277
p03813
C++
#include<bits/stdc++.h> using namespace; int main(){ int x; if(x < 1200){ cout << "ABC" << endl; }else{ cout << "ARC" << endl; } }
a.cc:2:16: error: expected identifier before ';' token 2 | using namespace; | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 7 | cout << "ABC" << endl; | ^~~~ | std::cout In file include...
s605099947
p03813
C++
read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC"
a.cc:1:1: error: 'read' does not name a type 1 | read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC" | ^~~~ a.cc:1:9: error: expected unqualified-id before '[' token 1 | read a; [ $a -le 1200 ] && echo "ABC" || echo "ARC" | ^
s593983384
p03813
C++
#include <iostream> using namespace std; int main() { int x; if(x < 1200) cout << "ABC"; else cout << "ARG" }
a.cc: In function 'int main()': a.cc:8:21: error: expected ';' before '}' token 8 | else cout << "ARG" | ^ | ; 9 | } | ~
s515123326
p03813
C++
#include <iostream> using namespace std; int main() { int x; cin >> x; cout << (x < 1200 ? "ABC" : "ARC") <endl; }
a.cc: In function 'int main()': a.cc:6:38: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | cout << (x < 1200 ? "ABC" : "ARC") <endl; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/string:48...
s665625216
p03813
C++
x=int(input()) if x<1200: print("ABC") else: print("ARC")
a.cc:1:1: error: 'x' does not name a type 1 | x=int(input()) | ^
s802333176
p03813
C++
x=int(input()) if x<1200: print('ABC') else: print('ARC')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('ABC') | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print('ARC') | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x=int(input()) | ^
s905876302
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N; string str; cin >> N; if (N<1200){ str = "ABC"} else { str ="ARC" } cout << str << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ';' before '}' token 8 | str = "ABC"} | ^ | ; a.cc:10:15: error: expected ';' before '}' token 10 | str ="ARC" | ^ | ; 11 | } | ~
s750466733
p03813
C++
#include <bits/std/c++.h> using namespace std; int main(){ int n; cin >> n; if ( n < 1200 ) cout << "ABC" << endl; else cout << "ARC" << endl; }
a.cc:1:10: fatal error: bits/std/c++.h: No such file or directory 1 | #include <bits/std/c++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s496012999
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:14: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | int x;cin>x;cout<<(x>1200?"ARC":"ABC")<<endl; | ~~~^~ | | | | | int | std::istream {aka...
s920827473
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if(x<1200){ cout << ABC << endl; } else{ cout << ARC << endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: 'ABC' was not declared in this scope 8 | cout << ABC << endl; | ^~~ a.cc:11:13: error: 'ARC' was not declared in this scope 11 | cout << ARC << endl; | ^~~
s036704993
p03813
C++
#include<iostream> using namespace std; int main(){ int x; cin>>x; x<1200?cout<<"ABC"<<endl;:cout<<"ARC"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:33: error: expected ':' before ';' token 7 | x<1200?cout<<"ABC"<<endl;:cout<<"ARC"<<endl; | ^ | : a.cc:7:33: error: expected primary-expression before ';' token a.cc:7:34: error: expected prima...
s986304981
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>c; if(x<1200){ cout<<"ABC"<<endl; } else{ cout<<"ARC"<<endl; } }
a.cc: In function 'int main()': a.cc:6:8: error: 'c' was not declared in this scope 6 | cin>>c; | ^
s462029007
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; int ans,a,z; bool flag = 0; cin >> s; for(int i=0;i<s.size();i++){ if(s[i] == 'A' && flag == false){ a = i; flag = ture; } if(s[i] == 'Z') z = i; } ans = z-a+1; cout << ans << endl; }
a.cc: In function 'int main()': a.cc:12:14: error: 'ture' was not declared in this scope 12 | flag = ture; | ^~~~
s069655870
p03813
C++
#include<cstdio> #include<cmath> #include<string> #include<iostream> #include<algorithm> #include<utility> #include<vector> #include<map> #include<set> #include<limits> #include<bitset> #include<array> #include<numeric> #include<iomanip> #include<functional> using namespace std; typedef long long int ll; #define C(I)...
a.cc: In function 'int main()': a.cc:31:5: error: 'else' without a previous 'if' 31 | else C(a>=1200 ? "ARC":"ABC"); | ^~~~
s341874438
p03813
C++
#include <iostream> #include <array> #include <vector> #include <iomanip> #include <string> #include <cmath> #include <algorithm> #include <queue> #include <map> #include <set> using namespace std; typedef pair<int,int> P; typedef long long LL; const LL INF=1<<31; const LL MOD=1000000007; int main(){ int n;...
a.cc: In function 'int main()': a.cc:25:6: error: 'welse' was not declared in this scope; did you mean 'wmemset'? 25 | welse cout<<"ARC"<<endl; | ^~~~~ | wmemset
s695767264
p03813
C
include <stdio.h> int main(void) { int num = 0; scanf("%d",&num); if(num >= 1200){ printf("ARC\n"); } else{ printf("ABC\n"); } }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s631372840
p03813
C
#include<iostream> using namespace std; int main(){ int a; cin >> a; if(a<1200)cout << "ABC" << endl; else cout << "ARC" << endl; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s419352978
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; ...
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:1...
s876329437
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; ...
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:1...
s678708722
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; ...
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:1...
s436565076
p03813
C++
#include <bits/stdc++.h> #include <type_traits> using namespace std; using ll = int64_t; #define int ll #define for(i, a, b) for (int i = int(a); i < int(b); i++) #define rep(i, b) for(i, 0, b) #define mp make_pair #define pb push_back #define eb emplace_back #define all(x) x.begin(), x.end() auto &errstream = cerr; ...
a.cc:20:20: error: 'cerrdummy' does not name a type 20 | template <class t> cerrdummy &operator<<(cerrdummy &cd, const t &) { | ^~~~~~~~~ a.cc:25:1: error: 'cerrdummy' does not name a type 25 | cerrdummy &operator<<(cerrdummy &cd, | ^~~~~~~~~ a.cc: In function 'll read()': a.cc:60:1...
s947045781
p03813
C++
#include<algorithm> #include<string> using namespace std; int main(void) { int a; cin >> a; if (a < 1200) { cout << "ABC"; } else { cout << "ARC"; } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 'cin' was not declared in this scope 8 | cin >> a; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<string> +++ |+#include <iostream> 3 | using na...
s318485685
p03813
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; int main() { //cout.precision(10); int a; cin >> a; if(x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
a.cc: In function 'int main()': a.cc:14:8: error: 'x' was not declared in this scope 14 | if(x < 1200) cout << "ABC" << endl; | ^
s239712642
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { string ans = "ARC"; int x; cin >> x; if(x<1200){ ans = "ABC"; } cout << ans << endl;
a.cc: In function 'int main()': a.cc:11:29: error: expected '}' at end of input 11 | cout << ans << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s624233490
p03813
C++
#include<iostream> #include<string> using namespace std; int main(){ string s; cin >> s; for(int i = 0; i < s.size(); i++){ if("A" == s[i]){ for(int j = s.size() - 1; j > i; j--){ if("Z" == s[j]){ cout << j - i + 1; } } ...
a.cc: In function 'int main()': a.cc:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if("A" == s[i]){ a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | if("Z" == s[j]){
s278234524
p03813
C++
print(["ARC","ABC"][int(input())<1200])
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | print(["ARC","ABC"][int(input())<1200]) | ^
s711682374
p03813
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define debug(x) cerr << x << "\n" #define all(x) (x).begin(),(x).end() #define exist(s, e)((s).find(e) != (s).end()) int main(){ cin.tie(0); ios::sync_with_stdio(false); int x; cin >> x; cout << x < 1200 ? "ABC\n" : "ARC\n";...
a.cc: In function 'int main()': a.cc:15:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 15 | cout << x < 1200 ? "ABC\n" : "ARC\n"; | ~~~~~~~~~ ^ ~~~~ | | | | | int | std::basic_ostream<char> a.cc:15:15: ...
s206316329
p03813
C++
#include <iostream> using namespace std; int main() { int A; cin >> A+; if (A < 1200) { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
a.cc: In function 'int main()': a.cc:6:12: error: expected primary-expression before ';' token 6 | cin >> A+; | ^