submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s648905433
p03813
C++
#include <iostream> #include <string> using namespace std; int main(){ int a; cin>>a; if(x<1200)cout<<"ABC"<<endl; else cout<<"ARC"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: 'x' was not declared in this scope 9 | if(x<1200)cout<<"ABC"<<endl; | ^
s688750204
p03813
C++
#include <iostream> int main() { int x; while(cin >> x) { if(x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; } }
a.cc: In function 'int main()': a.cc:4:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | while(cin >> x) { | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///<...
s478601335
p03813
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x<1200)System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:7: error: illegal start of type }else{ ^ Main.java:11: error: class, interface, enum, or record expected } ^ 2 errors
s588177296
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x<1200)System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:3: error: ';' expected public static void main(String[] args) ^ Main.java:6: error: illegal start of type if(x<1200)System.out.println("ABC"); ^ Main.java:6: error: illegal start of type if(x<1200)System.out.println("ABC"); ^ Main.java:6: error: <identifier> ex...
s007021782
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x<1200)System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:7: error: illegal start of type }else{ ^ Main.java:11: error: class, interface, enum, or record expected } ^ 2 errors
s300667085
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(1200>=x)System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:7: error: illegal start of type }else{ ^ Main.java:11: error: class, interface, enum, or record expected } ^ 2 errors
s632258436
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(1200>=)System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:6: error: illegal start of expression if(1200>=)System.out.println("ABC"); ^ Main.java:7: error: illegal start of type }else{ ^ Main.java:11: error: class, interface, enum, or record expected } ^ 3 errors
s218258276
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x>=1200)System.out.println("ARC"); }else{ System.out.println("ABC"); } } }
Main.java:7: error: illegal start of type }else{ ^ Main.java:11: error: class, interface, enum, or record expected } ^ 2 errors
s390960367
p03813
Java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x>=1200)System.out.println("ARC") }else{ System.out.println("ABC") } }
Main.java:6: error: ';' expected if(x>=1200)System.out.println("ARC") ^ Main.java:7: error: illegal start of type }else{ ^ Main.java:8: error: ';' expected System.out.println("ABC") ^ 3 errors
s913838721
p03813
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if(x<1200) System.out.println("ABC"); else{ system.out.println("ARC"); } } }
Main.java:10: error: package system does not exist system.out.println("ARC"); ^ 1 error
s858075112
p03813
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if(x<1200) System.out.println("ABC"); else{ system.out.println("ARC"); }
Main.java:11: error: reached end of file while parsing } ^ 1 error
s469022107
p03813
Java
public class ABC053_A { public static void main(String[] args){ int x=1000; if(x<1200){ System.out.println("ABC"); } else{ System.out.println("ARC"); } } }
Main.java:1: error: class ABC053_A is public, should be declared in a file named ABC053_A.java public class ABC053_A { ^ 1 error
s117337166
p03813
C++
main(n){scanf("%d",&n);printf("A%cC\n",(n<1200?'B':'R'));}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(n){scanf("%d",&n);printf("A%cC\n",(n<1200?'B':'R'));} | ^
s332497337
p03813
C++
#include<iostream> #include<algorithm> #include<climits> #include<cmath> #include<cstdio> #include<cstdlib> #include<ctime> #include<string> #include<cstring> #include<vector> #include<stack> #include<queue> #include<set> #include<map> #include<bitset> using namespace std; typedef long long ll; typedef unsigned long ...
a.cc: In function 'int main()': a.cc:55:11: error: 'x' was not declared in this scope 55 | puts((x < 1200) ? "ABC" : "ARC"); | ^
s004901328
p03813
Java
import java.util.*; public class Main{ public static void main(String atgs[]){ Scanner scan = Scaner(System.in); int x = scan.nextInt(); if(x<1200){System.out.println("ABC");} else{System.out.println("ARC");} } }
Main.java:4: error: cannot find symbol Scanner scan = Scaner(System.in); ^ symbol: method Scaner(InputStream) location: class Main 1 error
s390458684
p03813
C
#include<stdio.h> int main() { int x; printf("Input x: "); while(true) { scanf("%d", &x); if (x <= 3000 && x >= 1) break; printf("x is fail (1 <= x <= 3000), please input again: "); } if (x >= 1200) printf("ARC"); else printf("ABC"); return 0; }
main.c: In function 'main': main.c:6:15: error: 'true' undeclared (first use in this function) 6 | while(true) | ^~~~ main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 1 | #include<stdio.h> +++ |+#include <stdbool...
s833016248
p03813
C++
#include <bits/stdc++.h> #define ren(i,j,n) for(li i=(j);i<(n);i++) #define rep(i,n) ren(i,0,(n)) #define all(a) begin(a),end(a) using namespace std; typedef long int li; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<string> vs; int main() { int a; cin>>a; if(a<1200) cout<<"ABC...
a.cc: In function 'int main()': a.cc:16:10: error: 'cour' was not declared in this scope 16 | else cour<<"ARC\n"; | ^~~~
s730315141
p03813
C++
#include<bits/stdc++.h> using namespace std;   int main(){ int a;scanf("%d",&a); if(a<1200)puts("ABC"); else puts("ARC"); }
a.cc:3:1: error: extended character   is not valid in an identifier 3 |   | ^ a.cc:3:1: error: '\U000000a0' does not name a type 3 |   | ^
s777845581
p03813
C++
#include<iostream> using namespace std; int main() { // get a integer int a; cin >> a; if (a < 1200) { cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:5: error: expected '}' before 'else' 11 | else | ^~~~ a.cc:9:19: note: to match this '{' 9 | if (a < 1200) { | ^
s844034405
p03813
C++
#include<iostream> using namespace std; int main() { // get a integer int a; cin >> a; if (a <= 1200) { cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:5: error: expected '}' before 'else' 11 | else | ^~~~ a.cc:9:20: note: to match this '{' 9 | if (a <= 1200) { | ^
s293364041
p03813
C++
#import"cstdio" x; main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import"cstdio" | ^~~~~~ a.cc:2:1: error: 'x' does not name a type 2 | x; | ^ a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");} ...
s102835414
p03813
C++
import Control.Applicative import Control.Monad import qualified Data.ByteString.Char8 as B import Data.Maybe (fromJust) import Text.Printf import Debug.Trace getInts :: IO [Int] getInts = map (fst . fromJust . B.readInt) . B.words <$> B.getLine main = do [x] <- getInts putStrLn $ if x < 1200 then "ABC" else "ARC...
a.cc:1:1: error: 'import' does not name a type 1 | import Control.Applicative | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s897287180
p03813
C++
using namespace std; int main() { // 整数の入力 int a; cin >> a; // スペース区切りの整数の入力 //int b,c; //cin >> b >> c; // 文字列の入力 string s, t; //cin >> s; // 出力 s = "ABC"; t = "ARC"; if(a>=1200) cout << t << endl; else cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:5: 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 | using namespace std; a.cc:11:5: error: 's...
s468138994
p03813
C++
#include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <locale> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <wchar.h> #include <wctype.h> #include <algor...
a.cc:56:10: fatal error: conio.h: No such file or directory 56 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s382648792
p03813
C++
#include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <locale> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <wchar.h> #include <wctype.h> #include <algor...
a.cc:56:10: fatal error: conio.h: No such file or directory 56 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s575316197
p03813
C++
#include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <locale> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <wchar.h> #include <wctype.h> #include <algor...
a.cc:56:10: fatal error: conio.h: No such file or directory 56 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s830820186
p03813
C++
//Written by Zhu Zeqi //Come on,baby //Hack,please #include<cmath> #include<math.h> #include<ctype.h> #include<algorithm> #include<bitset> #include<cassert> #include<cctype> #include<cerrno> #include<cfloat> #include<ciso646> #include<climits> #include<clocale> #include<complex> #include<csetjmp> #include<csignal> #inc...
a.cc: In function 'int main()': a.cc:80:26: error: expected ';' before 'return' 80 | cout<<"ARC"<<endl | ^ | ; 81 | //system("pause"); 82 | return 0; | ~~~~~~
s682633547
p03813
C++
import std.stdio, std.conv, std.string; void main() { (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln; }
a.cc:1:1: error: 'import' does not name a type 1 | import std.stdio, std.conv, std.string; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: '::main' must return 'int' 3 | void main() { | ^~~~ a.cc: In function 'int main()': a.cc:4:6: error: 'readln' was not...
s361070794
p03813
C++
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <stack> #include <queue> #include <set> #include <cmath> #include <map> #include <fstream> #define rep(i,a,n) for(int i=a;i<n;i++) using namespace std; typedef long long ll; typ...
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)': a.cc:25:44: error: 'ostream_iterator' is not a member of 'std' 25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", ")); | ^~~~~~~~~~~~~~~~ a.cc:14:1: note: 's...
s772487284
p03813
C++
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <stack> #include <queue> #include <set> #include <cmath> #include <map> #include <fstream> #define rep(i,a,n) for(int i=a;i<n;i++) using namespace std; typedef long long ll; typ...
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)': a.cc:25:44: error: 'ostream_iterator' is not a member of 'std' 25 | std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", ")); | ^~~~~~~~~~~~~~~~ a.cc:14:1: note: 's...
s351078393
p03813
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException.; public class Main { public static void main (String args[]){ BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); String line; try { ...
Main.java:3: error: <identifier> expected import java.io.IOException.; ^ 1 error
s553409041
p03813
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main (String args[]){ BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); String line; try { line = reader.readLine(); ...
Main.java:18: error: cannot find symbol }catch (IOException e){ ^ symbol: class IOException location: class Main 1 error
s742416541
p03813
Java
import java.util.*; public class Main { public static void main (String args[]){ BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); String line; try { line = reader.readLine(); int number = Integer.parseInt...
Main.java:6: error: cannot find symbol BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); ^ symbol: class BufferedReader location: class Main Main.java:6: error: cannot find symbol BufferedReader reader = new BufferedReader (new InputStreamReader (Syst...
s460495450
p03813
Java
import java.util.*; public class Main { public static void main (args[]){ BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); String line; try { line = reader.readLine(); int number = Integer.parseInt(line);...
Main.java:4: error: <identifier> expected public static void main (args[]){ ^ 1 error
s266922175
p03813
C++
import java.util.*; public class Main { BufferedReader reader = new BufferedReader (new InputStreamReader (System.in)); String line; try { line = reader.readLine(); int number = Integer.parseInt(line); if (number<1200){ ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s342111152
p03813
C++
#import<iostream> main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";} | ^~~~ a.cc:2:1: warning: 'int main(in...
s829746087
p03813
C++
#import<iostream> main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";} | ^~~~ a.cc:2:1: warning: 'int main(in...
s193073501
p03813
C
#include <stdio.h> int main() { int x; if(x < 1200){printf(ABC\n);} else{printf(ARC\n);} return 0; ]
main.c: In function 'main': main.c:6:32: error: stray '\' in program 6 | if(x < 1200){printf(ABC\n);} | ^ main.c:6:29: error: 'ABC' undeclared (first use in this function) 6 | if(x < 1200){printf(ABC\n);} | ^~~ main.c:6:29: n...
s465334680
p03813
Java
import java.io.*; public class Main { private static MyScanner scanner; public static void main (String[] args){ Main instance = new Main(); scanner = instance.new MyScanner(); instance.solve(); } private void solve() { try { long min_point = scanner.nextLon...
Main.java:15: error: bad operand types for binary operator '<' if ( 6 < mod_min_point < 6) { ^ first type: boolean second type: int 1 error
s158840855
p03813
Java
public class Main { public static void main(String ...args) { Scanner sc = new Scanner(System.in); System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC"); } }
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
s948594397
p03813
Java
public class Main { public static void main(String args...) { Scanner sc = new Scanner(System.in); System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC"); } }
Main.java:2: error: ',', ')', or '[' expected public static void main(String args...) { ^ 1 error
s859903493
p03813
C
#include<stdio.h> int main() { int x; scanf("%d",&x); if(1200<=x){ printf("ARC"); }else{ printf("ABC"); }
main.c: In function 'main': main.c:10:1: error: expected declaration or statement at end of input 10 | } | ^
s188871579
p03813
C
#include<stdio.h> int main { int x; scanf("%d",&x); if(1200<=x){ printf("ARC"); }else{ printf("ABC"); } }
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 3 | { | ^
s103083234
p03813
C++
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author Yulian */ #include <iostream> #include <iostream> #include <fstream> #include <vector> #include <set> #include <cmath> #include <queue> #include <deque> #include <string> #include <algorithm> #include <map> #include "....
a.cc:18:10: fatal error: ../../library/lib.hpp: No such file or directory 18 | #include "../../library/lib.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s305955030
p03813
C++
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author Yulian */ #include <iostream> int getTheAnswer() { return 42; } template<class InputIt> void incAll(const InputIt &first, const InputIt &last) { for (auto it = first; it != last; ++it) { ++*it; } } temp...
a.cc: In member function 'void TaskA::solve(std::istream&, std::ostream&)': a.cc:57:5: error: 'vector' was not declared in this scope 57 | vector<int> x(1); | ^~~~~~ a.cc:10:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 9 | #include <...
s158376518
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:7:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout << x < 1200 ? "ABC" : "ARC" << endl; | ~~~~~~~~~ ^ ~~~~ | | | | | int | std::basic_ostream<char> a.cc:7:15...
s479409796
p03813
C++
#include <iostream> using namespace std; int main() { int rate; cin >> rate; if(rate < 1200) { cout >> "ABC" } else { cout >> "ARC" } }
a.cc: In function 'int main()': a.cc:10:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 10 | cout >> "ABC" | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_ostr...
s702763249
p03813
C++
#include <iostream> using namespace std; int main() { int rate; cin >> rate; if(rate < 1200) { cout "ABC" } else { cout "ARC" } }
a.cc: In function 'int main()': a.cc:10:9: error: expected ';' before string constant 10 | cout "ABC" | ^~~~~~ | ; a.cc:12:9: error: expected ';' before string constant 12 | cout "ARC" | ^~~~~~ | ;
s728561578
p03813
C++
#include <stdio.h> void main (){ int x; scanf("%d",&x); if(x>1200&&x<3000) printf("ARC"); else if(x>0) printf("ABC"); return ; }
a.cc:3:1: error: '::main' must return 'int' 3 | void main (){ | ^~~~ a.cc: In function 'int main()': a.cc:10:5: error: return-statement with no value, in function returning 'int' [-fpermissive] 10 | return ; | ^~~~~~
s811942753
p03813
C
#include<stdio.h> int main() { int x; scnf("%d",&x); if(x<1200) { printf("ABC"); } else//x>1200) { printf("ARC"); } return 0; }
main.c: In function 'main': main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 5 | scnf("%d",&x); | ^~~~ | scanf
s252404111
p03813
C
#include<stdio.h> int main() { int x; scnf("%d",&x); if(x<1200) printf("ABC"); else//x>1200) { printf("ARC"); } }
main.c: In function 'main': main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 5 | scnf("%d",&x); | ^~~~ | scanf
s534198924
p03813
C++
#include<stdio.h> int main(){ int a; scanf("%d",&a); if(a<1200) printf("ABC"); else if(a>1200) printf("ARC"); return 0; } #include<stdio.h> int main(){ int a; scanf("%d",&a); if(a<1200) printf("ABC"); else if(a>1200) printf("ARC"); ...
a.cc:23:9: error: redefinition of 'int main()' 23 | int main(){ | ^~~~ a.cc:5:9: note: 'int main()' previously defined here 5 | int main(){ | ^~~~
s940635421
p03813
Java
import java.math.*; import java.io.*; import java.util.*; import java.lang.*; public class number { public static void main(String[] args) { Scanner s=new Scanner(System.in); int n=s.nextInt(); if(n<1200) System.out.println("ABC"); else System.out.println("ARC"); } }
Main.java:7: error: class number is public, should be declared in a file named number.java public class number { ^ 1 error
s878539406
p03813
C++
input = $<.gets.chomp.to_i puts (input < 1200) ? "ABC" : "ARC"
a.cc:1:1: error: 'input' does not name a type; did you mean 'int'? 1 | input = $<.gets.chomp.to_i | ^~~~~ | int
s289427273
p03813
C
#include<stdio.h> int main(void) { int x=0; scanf("%d",&x); if(1<=x && x<=3000) {} else{} if(1<=x && x<=1200) { printf("ABC\n"); } if(1201<=x && x<=3000) { printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:21:1: error: expected declaration or statement at end of input 21 | } | ^
s555994153
p03813
C
#include<stdio.h> int main(void) { int x; scanf("%d",&x); if(1<=x && x<=3000) {} else{} if(1<=x && x<=1200) { printf("ABC\n"); } if(1201<=x && x<=3000) { printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:21:1: error: expected declaration or statement at end of input 21 | } | ^
s688091539
p03813
C
#include<stdio.h> int main(void) { int x; scanf("%d",&x); if(1<=x && x<=3000) {} else{} if(1<=x && x<=1200) { printf("ABC\n",x); } if(1201<=x && x<=3000) { printf("ARC\n",x); return 0; }
main.c: In function 'main': main.c:21:1: error: expected declaration or statement at end of input 21 | } | ^
s028728237
p03813
C++
#include <bits/stdc++.h> int main(){ int x; cin >> x; std::cout << ((x < 1200) ? "ABC" : "ARC") << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:3:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 3 | int x; 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...
s459166364
p03813
Java
import java.io.InputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.OutputStreamWriter; import java.io.IOException; import java.math.BigInteger; import java.util.*; import java.util.stream.Stream; /** * * @author Pradyumn Agrawal coderbond007 */ public class Main{ public stati...
Main.java:27: error: cannot find symbol if(x < 1200){ ^ symbol: variable x location: class Main 1 error
s966774089
p03813
C++
#include <stdio.h> #include <string.h> char str[3000000]; int main(){ scanf("%s",str); int l,r; int i; int rr; for(i=0;str[i] != \0; i++) { rr = i; if( str[i] == 'Z' ) r = i ; } for(i=rr; i>=0; i--){ if(str[i] == 'A') l = i; } printf("%d\n",r - l + 1); ret...
a.cc:9:23: error: stray '\' in program 9 | for(i=0;str[i] != \0; i++) { | ^
s478094868
p03813
C++
x = int(input()) if(x < 1200): print 'ABC' else: print 'ARC'
a.cc:4:15: warning: multi-character character constant [-Wmultichar] 4 | print 'ABC' | ^~~~~ a.cc:6:15: warning: multi-character character constant [-Wmultichar] 6 | print 'ARC' | ^~~~~ a.cc:1:1: error: 'x' does not name a type 1 | x = int(input()) ...
s644977152
p03813
C
include <stdio.h> int main(){ int x; scanf("%d",&x); printf( x < 1200 ? "ABC" : "ARC"); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s692206114
p03813
C
#include <stdio.h> int main(){ int x; scanf'("%d",&x); printf( x <= 1200 ? "ABC" : "ARC"); return 0; }
main.c: In function 'main': main.c:4:10: warning: missing terminating ' character 4 | scanf'("%d",&x); | ^ main.c:4:10: error: missing terminating ' character 4 | scanf'("%d",&x); | ^~~~~~~~~~~ main.c:4:10: error: expected ';' before 'printf' 4 | scanf'("%d",&x); ...
s482089606
p03813
C++
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n < 1200){ System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s019652552
p03813
C++
package sg20170129; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n < 1200){ System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
a.cc:1:1: error: 'package' does not name a type 1 | package sg20170129; | ^~~~~~~ a.cc:3:1: error: 'import' does not name a type 3 | import java.util.Scanner; | ^~~~~~ a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:5:1: error: expected unqualified-id before 'public' 5 | p...
s136396572
p03813
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicode001 { class Program { static void Main() { Program pg = new Program(); string word = Console.ReadLine(); int a = word ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s005226213
p03813
C
#include<stdio.h> int main(void){ int x; scanf("%d,"&x); if (x < 1200) printf("ABC\n"); else printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int') 5 | scanf("%d,"&x); | ~~~~~^ | | | char *
s439060139
p03813
C++
#include<stdio.h> int main(void){ int x; scanf("%d",x); if (x < 1200) print("ABC\n"); else printf("ARC\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'print' was not declared in this scope; did you mean 'printf'? 7 | print("ABC\n"); | ^~~~~ | printf
s455451272
p03813
C
#include<stdio.h> int main(void){ int x; scanf("%d",x); if (x < 1200) print("ABC\n"); else printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration] 7 | print("ABC\n"); | ^~~~~ | printf
s787181904
p03813
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); if(a<1200){ System.out.println("ABC"); return } // 出力 System.out.println("ARC"); } } }
Main.java:10: error: illegal start of expression } ^ Main.java:15: error: class, interface, enum, or record expected } ^ 2 errors
s834978994
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()) | ^
s637726759
p03813
C++
#include <iostream> using namespace std; int main() { long long int x; cin >> x; if (x <= 6) { cout << 1 << endl; } else if (x > 6 && x <= 12) { cout << 2 << endl; // aaa } } else { long long int ans = ((x - 1) / 11) * 2; // printf("%lld\n", ans); int mod = (x - 1) % 11; // printf...
a.cc: In function 'int main()': a.cc:22:26: error: expected primary-expression before ')' token 22 | } else if (mod > 6 &&) { | ^
s891243402
p03813
Java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); if (1 <= a && a <= 3000) { if (a < 1200) { System.out.println("ABC"); } else { System.out.println("ARC"); } } } }
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s363285421
p03813
Java
public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); if (1 <= a && a <= 3000) { if (a < 1200) { System.out.println("ABC"); } else { System.out.println("ARC"); } } }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
s377260196
p03813
C
#include<stdio.h> #include<string.h> int main() { char s[200000]; scanf("%s",s); int i; while(s[i]!=A) { i++; } int t=i; while(s[t]!=Z) { t++; } printf("%d",t-i+1); return 0; }
main.c: In function 'main': main.c:8:15: error: 'A' undeclared (first use in this function) 8 | while(s[i]!=A) | ^ main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in main.c:13:15: error: 'Z' undeclared (first use in this function) 13 | whil...
s299016173
p03813
C++
#include <stdio.h> #include <string.h> int main(void) { int x; char s[101]; scanf("%d", &x); if(x >= 0 && x < 1200){ strncat(s, "ABC"); }else if(x >= 1200){ strncat(s, "ARC"); } printf("%s\n", s); return 0; }
a.cc: In function 'int main()': a.cc:11:24: error: too few arguments to function 'char* strncat(char*, const char*, size_t)' 11 | strncat(s, "ABC"); | ~~~~~~~^~~~~~~~~~ In file included from a.cc:2: /usr/include/string.h:152:14: note: declared here 152 | extern char *strncat (...
s789604427
p03813
Java
package com.company.abc053; import java.io.*; import java.util.Scanner; /** * Created by ueda on 2017/01/28. */ public class A { public static void main(String[] args) { out.println(in.nextInt() < 1200 ? "ABC" : "ARC"); } public static final Scanner in = new Scanner(new BufferedReader(new InputS...
Main.java:9: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s522616521
p03813
C
#include<stdio.h> 2.int main() 3.{ 4. int x; 5. scanf("%d",&x); 6. if(x<1200) 7. printf("ABC"); 8. else 9. printf("ARC"); 10. return 0; 11.}
main.c:2:1: error: invalid suffix "int" on floating constant 2 | 2.int main() | ^~~~~ main.c:2:1: error: expected identifier or '(' before numeric constant
s867430253
p03813
C++
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x1200) printf("ABC"); else printf("ARC"); return 0; }
a.cc: In function 'int main()': a.cc:6:6: error: 'x1200' was not declared in this scope 6 | if(x1200) | ^~~~~
s955227366
p03813
C++
#include <iostream> using namespace std; int main() { int x; cin >> x; if(x>3000){ return 0; }
a.cc: In function 'int main()': a.cc:11:4: error: expected '}' at end of input 11 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s333160480
p03813
C++
#include <iostream> #include <vector> using namespace std; #define debug(x) cout << #x << "==" << x << endl; const int inf = 100000000; typedef long long ll; int main() { ios::sync_with_stdio(false); int X; cin >> X;#include <iostream> #include <vector> using namespace std; #define debug(x) cout << #x << ...
a.cc:16:12: error: stray '#' in program 16 | cin >> X;#include <iostream> | ^ a.cc: In function 'int main()': a.cc:16:13: error: 'include' was not declared in this scope 16 | cin >> X;#include <iostream> | ^~~~~~~ a.cc:16:30: error: expected primary-expression before '>' tok...
s478484234
p03813
C++
#include <stdio.h> int main(){ ilong long x; scanf("%lld", &x); printf(x>1200?"ARC":"ABC"); return 0; }
a.cc: In function 'int main()': a.cc:3:1: error: 'ilong' was not declared in this scope; did you mean 'long'? 3 | ilong long x; | ^~~~~ | long a.cc:4:16: error: 'x' was not declared in this scope 4 | scanf("%lld", &x); | ^
s478694420
p03813
C++
#include <stdio.h> int main(){ int x; scanf("%d", &x); printf("x>1200?"ARC":"ABC"); return 0; }
a.cc:5:26: warning: missing terminating " character 5 | printf("x>1200?"ARC":"ABC"); | ^ a.cc:5:26: error: missing terminating " character 5 | printf("x>1200?"ARC":"ABC"); | ^~~ a.cc: In function 'int main()': a.cc:5:20: error: inconsistent user-defi...
s117584045
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int t; scanf("%d", &t); string ans = t < 1200 ? 'ABC' : 'ARC'; cout << ans << endl; return 0; }
a.cc:9:33: warning: multi-character character constant [-Wmultichar] 9 | string ans = t < 1200 ? 'ABC' : 'ARC'; | ^~~~~ a.cc:9:41: warning: multi-character character constant [-Wmultichar] 9 | string ans = t < 1200 ? 'ABC' : 'ARC'; | ...
s228426197
p03813
Java
package atcoder; import java.util.Scanner; /** * Created by Abhilash on 28-01-2017. */ public class ABC_ARC { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); if(num<1200) System.out.println("ABC"); else ...
Main.java:8: error: class ABC_ARC is public, should be declared in a file named ABC_ARC.java public class ABC_ARC { ^ 1 error
s225392781
p03813
C++
#include <cstdio> using namespace std; int main() { scanf("%d", &x); if (x < 1200) printf("ABC\n"); else printf("ARC\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:18: error: 'x' was not declared in this scope 7 | scanf("%d", &x); | ^
s128124540
p03813
C++
#include <iostream> #include <algorithm> typedef long long ll; typedef unsigned long long ull; typedef unsigned int uint; void solveA() { int x; cin >> x; if (x < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; } void solveB() { } void solveC() { } void solveD() { } int main() { solveA(); return 0; ...
a.cc: In function 'void solveA()': a.cc:9:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 9 | int x; cin >> x; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | exter...
s467952135
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; return 0; }
a.cc: In function 'int main()': a.cc:9:13: error: 'ABC' was not declared in this scope 9 | cout << ABC << endl; | ^~~ a.cc:10:17: error: 'ARC' was not declared in this scope 10 | }else cout << ARC <<endl; | ^~~
s784481987
p03813
Java
import com.sun.tools.corba.se.idl.StringGen; import java.util.*; /** * Created by Seiya on 2016/10/16. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a, b, c; a = scanner.nextInt(); if(a < 1200) { Syste...
Main.java:1: error: package com.sun.tools.corba.se.idl does not exist import com.sun.tools.corba.se.idl.StringGen; ^ 1 error
s059860466
p03813
C
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main(){ int x; scanf("%d"&x); if(x<1200) printf("ABC\n"); else printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:8:19: error: invalid operands to binary & (have 'char *' and 'int') 8 | scanf("%d"&x); | ~~~~^ | | | char *
s124365238
p03814
C++
#include<iostream> int main() { std::string str; std::cin>>str; int i,a,b; for(i=0;i<str.size();i++){ if(str[i]=='A'){ a = i; break; } } for(i=;str.size()-1;i>=0;i--){ if(str[i]=='Z'){ b = i; break; } } std:...
a.cc: In function 'int main()': a.cc:14:11: error: expected primary-expression before ';' token 14 | for(i=;str.size()-1;i>=0;i--){ | ^ a.cc:14:29: error: expected ')' before ';' token 14 | for(i=;str.size()-1;i>=0;i--){ | ~ ^ | ...
s525107105
p03814
C++
#include<string> #include<iomanip> #include <numeric> #include <limits> using namespace std; int main() { string s; int x,y; cin>>s; x=s.find("A"); y=s.rfind("Z"); cout<<y-x+1; }
a.cc: In function 'int main()': a.cc:9:21: error: 'cin' was not declared in this scope 9 | string s; int x,y; cin>>s; | ^~~ a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 4 | #include <limits> +++ |+#include <io...
s007363630
p03814
C++
#include<string> #include<iomanip> #include <numeric> #include <limits> using namespace std; int main() { string s; int x,y; getline(cin,s); for(int i=0;i<s.size();i++) { if(s.at(i)=='A'){ x=i; break;} } for(int i=s.size()-1;i>x;i--) { if(s.at(i)=='Z'){ y=i; break;} } cout<<y-x+1; }
a.cc: In function 'int main()': a.cc:9:29: error: 'cin' was not declared in this scope 9 | string s; int x,y; getline(cin,s); | ^~~ a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 4 | #include <limits> ++...
s816192094
p03814
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; int main () { string s; int index1, index2; cin >> s; for(i=0; i<s.size();i++){ if(s[i]=='A'){ index1=i; break; } } for(i=s.size()-1; i>-1;...
a.cc: In function 'int main()': a.cc:12:7: error: 'i' was not declared in this scope 12 | for(i=0; i<s.size();i++){ | ^ a.cc:19:7: error: 'i' was not declared in this scope 19 | for(i=s.size()-1; i>-1;i--){ | ^ a.cc: At global scope: a.cc:32:3: error: 'cout' does not name a type 32 ...
s089574483
p03814
C
#include <iostream> #include <string> using namespace std; int main(void){ string S; cin >> S; int l,r; l = r = -1; for(int i=0;i<S.size();i++){ if(S[i] == 'A' && l == -1){ l = i; } if(S[i] == 'Z'){ r = i; } } int ans = r - l; ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s492533161
p03814
C++
#include<iostream> using namespace std; int main() { string a;cin>>a; int c=0,d=0; int n=a.size(); for(int i=n-1;.i>=0;i--) { if(a[i]=='Z'){d=i;break;} } for(int i=0;.i<n;i++) { if(a[i]=='A'){c=i;break;} } cout<<d-c+1<<endl; }
a.cc: In function 'int main()': a.cc:9:17: error: expected primary-expression before '.' token 9 | for(int i=n-1;.i>=0;i--) | ^ a.cc:13:15: error: expected primary-expression before '.' token 13 | for(int i=0;.i<n;i++) | ^
s408398595
p03814
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int a,b; for(int i=0;i<N;i++){ if(s[i]=='A') a=i; if(s[N-1-i]=='Z') b=N-1-i; } cout << b-a+1 << endl; } }
a.cc: In function 'int main()': a.cc:9:17: error: 'N' was not declared in this scope 9 | for(int i=0;i<N;i++){ | ^ a.cc: At global scope: a.cc:19:1: error: expected declaration before '}' token 19 | } | ^
s892458997
p03814
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; bool x=false; for(int i=0;i<s.size();i++){ int p=-1; int count=0; if(s[i]=='A'){ x=true; count++; } if(x) { count++; } if(s[i]=='Z' && x ){ x=fal...
a.cc: In function 'int main()': a.cc:27:13: error: 'p' was not declared in this scope 27 | cout << p << endl; | ^
s217999685
p03814
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int p=-1; bool x=false; for(int i=0;i<s.size();i++){ int count=0; if(s[i]=='A'){ x=true; count++; } else if(x) { count++; } else if(s[i]=='Z'){ x=false; ...
a.cc: In function 'int main()': a.cc:26:4: error: expected '}' at end of input 26 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s273704285
p03814
C++
#include <bits/stdc++.h> using namespace std; using ll =long long; #define all(v) v.begin(),v.end() int main() { string s; cin>>s; ll max=0; ll count=0; for(ll i=0;i<s.size();i++) { if(count==0&&S[i]=='A') { count++; } if(count>0) { count++; } if(S[i]=='Z') { max=count; } } cout<<...
a.cc: In function 'int main()': a.cc:13:14: error: 'S' was not declared in this scope 13 | if(count==0&&S[i]=='A') { | ^ a.cc:20:8: error: 'S' was not declared in this scope 20 | if(S[i]=='Z') { | ^