submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s528847649 | p03813 | Java | import java.util.*
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
System.out.println((x < 1200) ? "ABC" : "ARC");
}
} | Main.java:1: error: ';' expected
import java.util.*
^
1 error
|
s398849144 | p03813 | C++ | include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<string>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<time.h>
#include<tuple>
#include<set>
#include<map>
#include<cctype>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define vint vector<int>
#d... | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
In file included from /usr/include/c++/14/iosfwd:42,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
fr... |
s667521779 | p03813 | C++ | #include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if (x < 1200) {
cout << "ABC";
}
else {
cout < "ARC";
}
} | a.cc: In function 'int main()':
a.cc:14:22: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
14 | cout < "ARC";
| ~~~~ ^ ~~~~~
| | |
| | const char [4]
... |
s314871842 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define itrfor(itr,A) for(auto itr = A.begin(); itr !=A.end();itr++)
typedef long long llong;
char moji[26]={'a','b','c','d','e','f','g','h'... | a.cc: In function 'int main()':
a.cc:20:37: error: expected '}' at end of input
20 | if(1200<=x) cout << "ARC" << endl;
| ^
a.cc:16:11: note: to match this '{'
16 | int main(){
| ^
|
s448071831 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int x;
cin>>x;
cout<<(c<1200?"ABC":"ARC");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'c' was not declared in this scope
7 | cout<<(c<1200?"ABC":"ARC");
| ^
|
s295419823 | p03813 | C++ | if int(input()) < 1200 :
print "ABC"
else :
print "ARC" | a.cc:1:1: error: expected unqualified-id before 'if'
1 | if int(input()) < 1200 :
| ^~
|
s480836399 | p03813 | C++ | #include <iosteam>
using namespace std;
int main(){
int x;
cin >> x;
if ( x < 1200 ) cout << "ABC" << endl;
else cout << "ARC" << endl;
} | a.cc:1:10: fatal error: iosteam: No such file or directory
1 | #include <iosteam>
| ^~~~~~~~~
compilation terminated.
|
s567209907 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (x < 1200) ? "ABC" : "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:38: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout << (x < 1200) ? "ABC" : "ARC" << endl;
| ~~~~~~^~~~~~~
|
s788065662 | p03813 | C++ | import sys
import math
import collections
import itertools
import array
import inspect
# Set max recursion limit
sys.setrecursionlimit(1000000)
# Debug output
def chkprint(*args):
names = {
id(v): k
for k, v in inspect.currentframe().f_back.f_locals.items()
}
print(', '.join(
name... | a.cc:8:3: error: invalid preprocessing directive #Set
8 | # Set max recursion limit
| ^~~
a.cc:12:3: error: invalid preprocessing directive #Debug
12 | # Debug output
| ^~~~~
a.cc:18:11: warning: multi-character character constant [-Wmultichar]
18 | print(', '.join(
| ^~~~
... |
s894983786 | p03813 | C++ | x = int(input().rstrip())
print('ABC' if x < 1200 else 'ARC')
| a.cc:3:7: warning: multi-character character constant [-Wmultichar]
3 | print('ABC' if x < 1200 else 'ARC')
| ^~~~~
a.cc:3:30: warning: multi-character character constant [-Wmultichar]
3 | print('ABC' if x < 1200 else 'ARC')
| ^~~~~
a.cc:1:1: error: 'x' does not na... |
s732889335 | p03813 | C++ | #include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair... | a.cc: In function 'int main()':
a.cc:23:5: error: 'result' was not declared in this scope
23 | result = "ARC";
| ^~~~~~
|
s479735717 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
if (x < 1200) {
cout << "ABC" << endl;
}
else {
cout << "ARC" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:13: error: 'x' was not declared in this scope
6 | if (x < 1200) {
| ^
|
s996104565 | p03813 | C++ | #include <iostream>
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:21: error: expected primary-expression before '<' token
8 | cout<<"ABC"<<<endl;
| ^
|
s426245610 | p03813 | C | #include<stdio.h>
int main(){
int a;
scanf("%d",&a)
if(a>=1200)puts("ARC");
else puts("ABC");
return 0;
} | main.c: In function 'main':
main.c:5:15: error: expected ';' before 'if'
5 | scanf("%d",&a)
| ^
| ;
6 | if(a>=1200)puts("ARC");
| ~~
main.c:7:1: error: 'else' without a previous 'if'
7 | else puts("ABC");
| ^~~~
|
s177434435 | 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:5:11: error: expected ';' before 'if'
5 | cin >> x
| ^
| ;
6 | if(x<1200){cout << "ABC" << endl;}
| ~~
a.cc:7:3: error: 'else' without a previous 'if'
7 | else{ cout << "ARC" << endl;}
| ^~~~
|
s235374110 | 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:5:11: error: expected ';' before 'if'
5 | cin >> x
| ^
| ;
6 | if(x<1200)cout << "ABC" << endl;
| ~~
a.cc:7:3: error: 'else' without a previous 'if'
7 | else cout << "ARC" << endl;
| ^~~~
|
s468711308 | p03813 | C++ | include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if (x < 1200) {
cout << "ABC" << endl;
} else {
cout << "ARC" << endl;
}
}
| a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
9 | cin >> x;
| ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
12 | cout << "ABC" << endl;
| ... |
s948205884 | p03813 | C++ | /*input
happy,newyear,enjoy
*/
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<double,double> pdd;
#d... | a.cc: In function 'int main()':
a.cc:65:25: error: expected ';' before 'return'
65 | else cout<<"ARC"
| ^
| ;
66 | return 0;
| ~~~~~~
|
s990115968 | p03813 | C++ | #include <iostream>
using namespacestd;
int main()
{
| a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
2 | using namespacestd;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: expected '}' at end of input
5 | {
| ~^
|
s738966997 | p03813 | C | #include <stdio.h>
int main(void){
int x;scanf("%d",&x);
print("%s\n",(x>=1200)?"ARC":"ABC");
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
4 | print("%s\n",(x>=1200)?"ARC":"ABC");
| ^~~~~
| printf
|
s246844622 | p03813 | C++ | #include<bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; ++i)
#define FOR(i, a, b) for(int i = a; i < b; ++i)
#define F first
#define S second
#define OUT(x) cout << (x) << "\n"
using namespace std;
using point = pair< int,int >;
using ll = long long;
int main() {
int x;
cin >> x;
OUT(x < 1200 : "A... | a.cc: In function 'int main()':
a.cc:15:18: error: expected ')' before ':' token
15 | OUT(x < 1200 : "ABC" : "ARC");
| ^
a.cc:6:25: note: in definition of macro 'OUT'
6 | #define OUT(x) cout << (x) << "\n"
| ^
a.cc:6:24: note: to match this '('
6 | #de... |
s525579505 | p03813 | C |
int main (){
int x;
printf("Smeke's current rating : ");
scanf("%d",&x);fflush(stdin);
if(x<1200 && x>=1){
printf("ABC\n");
}else if(x>= 1200 && x<= 3000){
printf("ARC\n");
}
return 0;
}
| main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | printf("Smeke's current rating : ");
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 |
main.c:4:5: warnin... |
s067826514 | p03813 | C | #include <stdio.h>
int main (){
int x;
printf("Smeke's current rating : ");
scanf("%d",&x);fflush(stdin);
if(x<1200 && x>=1){
printf("ABC\n");
}else if(x>= 1200 && x<= 3000){
printf("ARC\n");
return 0;
} | main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
16 | }
| ^
|
s123395319 | p03813 | C | #include <stdio.h>
int main()
{
int x;
1<=x<=3000;
scanf("%d", &x);
if(x<1200){
printf("ABC");
}
else
{
printf("ARC")
}
return 0;
}
| main.c: In function 'main':
main.c:12:22: error: expected ';' before '}' token
12 | printf("ARC")
| ^
| ;
13 | }
| ~
|
s473700061 | p03813 | C++ | #include <stdio.h>
int main()
{
int x;
1<=x<=3000;
scanf("%d", &x);
if(x<1200){
printf("ABC");
}
else
{
printf("ARC")
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
12 | printf("ARC")
| ^
| ;
13 | }
| ~
|
s652777175 | p03813 | C | #include <stdio.h>
int main()
{
int x;
printf("enter x:");
scanf("%d", &x);
if(1 <= x <= 1200)
{
printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
", x);
}
else if(1200 <= x <= 3000)
{
printf("\n Smeke's current rating is higher than 1200... | main.c: In function 'main':
main.c:9:16: warning: missing terminating " character
9 | printf("\n Smeke's current rating is lower than 1200 thus it will be ABC.
| ^
main.c:9:16: error: missing terminating " character
9 | printf("\n Smeke's current rating is lower than 1200 th... |
s615524395 | p03813 | C | #include <stdio.h>
int main()
{
int x;
printf("enter x:");
scanf("%d", &x);
if(1 <= x <= 1200)
{
printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
", x);
}
else if(1200 <= x <= 3000)
{
printf("\n Smeke's current rating is not le... | main.c: In function 'main':
main.c:9:16: warning: missing terminating " character
9 | printf("\n Smeke's current rating is less than 1200, thus the output should be ABC.
| ^
main.c:9:16: error: missing terminating " character
9 | printf("\n Smeke's current rating is less tha... |
s112452615 | p03813 | C | #include <stdio.h>
int main()
{
int x;
1 < x < 3{,}000;
printf ("Smeke's current rating is =");
scanf ("%d", &x);
if (x < 1200) {
printf ("Smeke's current rating is lower than 1200 thus it will be ABC");
} else if (x > 1200) {
printf ("Smeke's current rating is higher than 1200 thus it will be ARC");
}
retu... | main.c: In function 'main':
main.c:5:18: error: expected ';' before '{' token
5 | 1 < x < 3{,}000;
| ^
| ;
|
s156451505 | p03813 | C | #include <stdio.h>
#include <stdlib.h>
int main(){
int x;
scanf("%d",&x);
if (x < 1200){
printf("ABC\n");
printf("Smeke's current rating is less than 1200, thus the output should be ABC.");
}
else{
printf("ARC");
printf("\nSmeke's current rating is not less than 1... | main.c: In function 'main':
main.c:16:97: error: expected ';' before '}' token
16 | printf("\nSmeke's current rating is not less than 1200, thus the output should be ARC.")
| ^
| ... |
s379381002 | p03813 | C++ | #include<iostream>
using namespace sd;
int main(){
int x;
cin>>x;
if(x<1200)cout<<"ABC"<<endl;
else cout<<"ARC"<<endl;
} | a.cc:2:17: error: 'sd' is not a namespace-name
2 | using namespace sd;
| ^~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>x;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostr... |
s153283258 | p03813 | C++ | #include<iostream>
#include<string>
int main(){
int rate;
cin>>rate;
if(rate<1200){
cout<<"ABC"<<endl;
}else{
cout<<"ARC"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin>>rate;
| ^~~
| 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; ... |
s901361892 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
cout << x < 1200? "ABC" : "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
7 | cout << x < 1200? "ABC" : "ARC" << endl;
| ~~~~~~~~~ ^ ~~~~
| | |
| ... |
s329258088 | 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())
| ^
|
s304630258 | p03813 | Java | import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val n = sc.nextInt()
println(if (n < 1200) "ABC" else "ARC")
} | Main.java:1: error: ';' expected
import java.util.*
^
Main.java:4: error: illegal character: '`'
val sc = Scanner(System.`in`)
^
Main.java:4: error: illegal character: '`'
val sc = Scanner(System.`in`)
^
3 errors
|
s563822618 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin >> a;
if(a >= 1200){
cout << "ARC" << endl;
} else {
cout << "ABC" << endl;
}
return 0;
}p | a.cc:13:2: error: 'p' does not name a type
13 | }p
| ^
|
s514981010 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
cout<< (a<1200)?"ABC":"ARC"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:36: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout<< (a<1200)?"ABC":"ARC"<<endl;
| ~~~~~^~~~~~
|
s892548231 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
cout<< a<1200?"ABC":"ARC"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:17: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int')
8 | cout<< a<1200?"ABC":"ARC"<<endl;
| ~~~~~~~~^~~~~
| | |
| | int
| std::basic_ostream<char>
a.cc:8:1... |
s748845210 | p03813 | C++ | #include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
#include "dbgtoki.hpp"
#define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i)
DbgTimer D_t;
#define TSTART() D_t.start()
#define TSTOP() D_t.stop()
#else
#define DUMP(i)
#define TSTART()
#define TS... | a.cc: In function 'int main()':
a.cc:36:3: error: 'whil' was not declared in this scope
36 | whil(cin >> x ){
| ^~~~
|
s462696164 | p03813 | C++ | int main(void)
{
int x;
scanf("%d",&x);
if(x<1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
4 | scanf("%d",&x);
| ^~~~~
a.cc:6:25: error: 'printf' was not declared in this scope
6 | printf("ABC\n");
| ^~~~~~
a.cc:1:1: note: 'printf' is defi... |
s495238834 | p03813 | C++ | #!/usr/bin/env perl
use strict;
use warnings;
print <> < 1200 ? "ABC\n" : "ARC\n";
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env perl
| ^
a.cc:3:1: error: 'use' does not name a type
3 | use strict;
| ^~~
a.cc:4:1: error: 'use' does not name a type
4 | use warnings;
| ^~~
a.cc:6:1: error: 'print' does not name a type; did you mean 'int'?
6 | ... |
s037002470 | p03813 | C++ | #include <stdio.h>
int main(){
int a;
scanf(''%d'',&a);
if(a>=1200)
printf("ARC");
else
printf("ABC");
} | a.cc:4:7: error: empty character constant
4 | scanf(''%d'',&a);
| ^~
a.cc:4:11: error: empty character constant
4 | scanf(''%d'',&a);
| ^~
a.cc: In function 'int main()':
a.cc:4:10: error: 'd' was not declared in this scope
4 | scanf(''%d'',&a);
| ^
|
s356442296 | p03813 | C++ | #include<iostream>
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:7:19: error: 'ABC' was not declared in this scope
7 | if(x<1200)cout<<ABC<<endl;
| ^~~
a.cc:8:14: error: 'ARC' was not declared in this scope
8 | else cout<<ARC<<endl;
| ^~~
|
s577064695 | p03813 | C++ | #include<bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<string>
#include<iostream>
using namespace std;
int main() {
string S;
cin>>S;
int x=0;
int y=0;
for(int i=0;i<S.size();i++){
if(s[i]=='A'){
x=i;
break;
}
}
for(int i=0;i<S.size();i++)
... | a.cc: In function 'int main()':
a.cc:15:8: error: 's' was not declared in this scope
15 | if(s[i]=='A'){
| ^
a.cc:26:9: error: 'b' was not declared in this scope
26 | cout<<b-a+1<<endl;
| ^
a.cc:26:11: error: 'a' was not declared in this scope
26 | cout<<b-a+1<<endl;
| ... |
s188716647 | p03813 | C++ | #include <iostream>
using namespace std;
int main() {
int x;
cin>>x;
if(x>1200&&x<=3000){
cout<<"ARC"<<endl;
}
elseif(x<1200&&x>=1){
cout<<"ABC"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:15:5: error: 'elseif' was not declared in this scope
15 | elseif(x<1200&&x>=1){
| ^~~~~~
|
s655767719 | p03813 | C++ | #include<iostream>
using namespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'cut' was not declared in this scope
8 | cut << "ABC" << endl;
| ^~~
|
s514699566 | p03813 | C++ | #include<iostream>
using namsespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
2 | using namsespace std;
| ^~~~~~~~~~
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 >> a;
| ^~~
| std::cin
In file included from a.cc:1:
/u... |
s759581472 | p03813 | C++ | #include(iostream>
using namsespace std;
int main(void){
int a;
cin >> a;
if(a<1200){
cut << "ABC" << endl;
}
else{
cout << "ARC" << endl;
}
} | a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include(iostream>
| ^
a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
2 | using namsespace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 |... |
s674832561 | p03813 | C++ | #include<iostream>
using namespace std;
int main(){
int x;
cin >> x;
if(x<1200){
cout >> 'ABC' >> endl;
}
else{
cout >> 'ARC' >> endl;
}
return 0;
} | a.cc:7:17: warning: multi-character character constant [-Wmultichar]
7 | cout >> 'ABC' >> endl;
| ^~~~~
a.cc:10:17: warning: multi-character character constant [-Wmultichar]
10 | cout >> 'ARC' >> endl;
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:14: ... |
s564750125 | p03813 | C++ | #include<iostream>
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:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
7 | cout >> "ABC" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::... |
s559618583 | p03813 | C++ | #include<iostream>
#include<string>
#include <cmath>
#include <algorithm>
#define MOD 1000000007
using namespace std;
typedef long long ll;
int main(){
int x;
cin >> x;
if(x < 1200) cout << "ABC" << endl;
else cout << ARC" << endl;
return 0;
} | a.cc:16:17: warning: missing terminating " character
16 | else cout << ARC" << endl;
| ^
a.cc:16:17: error: missing terminating " character
16 | else cout << ARC" << endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:14: error: 'ARC' was not declared in this sc... |
s094767843 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if(x < 1200){
cout << "ABC" << endl;}
else{
cout << "ARC" << end;
}
} | a.cc: In function 'int main()':
a.cc:10:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
10 | cout << "ARC" << end;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/... |
s925974478 | p03813 | C++ | #include <stdio.h.
int main(){
int n;
scanf("%d",&n);
if(n<1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
} | a.cc:1:19: error: missing terminating > character
1 | #include <stdio.h.
| ^
a.cc:1:10: fatal error: stdio.h.: No such file or directory
1 | #include <stdio.h.
| ^
compilation terminated.
|
s270304567 | p03813 | C++ | #include<cstdio>
int main()
{
int x;
cin >> x;
if(x > 1200) printf("ARC");
else printf("ABC");
printf("\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin >> x;
| ^~~
|
s498229943 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x;
cin x;
if(x < 1200){
cout << "ABC" << endl;
}
else cout << "ARC" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'x'
7 | cin x;
| ^~
| ;
|
s266595620 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;
/* cpp template {{{ */
/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbe... | a.cc:66:5: error: cannot declare '::main' to be a template
66 | int main()
| ^~~~
|
s810562635 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;
/* cpp template {{{ */
/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbe... | a.cc:66:8: error: cannot declare '::main' to be a template
66 | signed main()
| ^~~~
|
s153659092 | p03813 | C++ | use std::env;
use std::io::*;
use std::str::*;
fn read<T: FromStr>() -> T {
let stdin = stdin();
let s = stdin.bytes().map(|c| c.unwrap() as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect::<String>();
s.parse::<T>().ok().unwrap()
}
fn main() {... | a.cc:1:1: error: 'use' does not name a type
1 | use std::env;
| ^~~
a.cc:2:1: error: 'use' does not name a type
2 | use std::io::*;
| ^~~
a.cc:3:1: error: 'use' does not name a type
3 | use std::str::*;
| ^~~
a.cc:5:1: error: 'fn' does not name a type
5 | fn read<T: FromStr>() -> T {
... |
s572120216 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin>>s;
for(int i=0;s[i]!='A';i++);
for(int j=s.size();s[j]!='Z';j--);
cout<<j-i+1;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'j' was not declared in this scope
9 | cout<<j-i+1;
| ^
a.cc:9:11: error: 'i' was not declared in this scope
9 | cout<<j-i+1;
| ^
|
s404301051 | p03813 | C++ | #include<bits/stdc++.h>
using namespace std;
int j;
string s;
int main(){
cin>>s;
for(int i=0;s[i];i++){
if (s[i]=='Z'){j=i}
for(i=0;s[i]!='A';i++){
cout<<j-i+1;
}
}
} | a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
9 | if (s[i]=='Z'){j=i}
| ^
| ;
|
s787094735 | p03813 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
int x;
cin>>x;
if(x<1200)cout<<"ABC¥n";
else cout<<"ARC¥n";
return 0;
} | a.cc:5:3: error: expected initializer before 'int'
5 | int x;
| ^~~
a.cc:6:1: error: 'cin' does not name a type
6 | cin>>x;
| ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
7 | if(x<1200)cout<<"ABC¥n";
| ^~
a.cc:8:1: error: expected unqualified-id before 'else'
8 | else c... |
s748550586 | p03813 | C++ | import Control.Applicative
import Control.Monad
import Data.List
import Data.Char
strToInt s = (read :: String -> Int) s
strToInteger s = (read :: String -> Integer) s
strToDouble s = (read :: String -> Double) s
main :: IO ()
main = do
-- 整数の入力
a <- readLn
-- 出力
putStrLn $ if a >= 1200 then "ARC" else... | 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'
|
s205553016 | p03813 | Java | import java.util.Scanner;
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(1200<=x){
System.out.println("ARC")
}
}
} | Main.java:8: error: not a statement
}else(1200<=x){
^
Main.java:8: error: ';' expected
}else(1200<=x){
^
Main.java:9: error: ';' expected
System.out.println("ARC")
^
3 errors
|
s320959346 | p03813 | C | #include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
if (n < 1200){
printf("ABC\n");
else{
printf("ARC\n");
}
return 0;
}
| main.c: In function 'main':
main.c:8:3: error: expected '}' before 'else'
8 | else{
| ^~~~
|
s214286657 | p03813 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int rate = sc.nextInt();
sc.close();
String ans = rate>=1200 ? "ARC" : "ABC";
System.out.println(ans);
}
} | Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s068141439 | p03813 | C++ | #include "stdio.h"
int main (void)
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '}' token
7 | { printf("ABC")}
| ^
| ;
a.cc:9:15: error: expected ';' before '}' token
9 | {printf("ARC")}
| ^
| ;
|
s839863865 | p03813 | C++ | #include "stdio.h"
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '}' token
7 | { printf("ABC")}
| ^
| ;
a.cc:9:15: error: expected ';' before '}' token
9 | {printf("ARC")}
| ^
| ;
|
s274381756 | p03813 | C++ | include "stdio.h"
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include "stdio.h"
| ^~~~~~~
|
s989017745 | p03813 | C++ | include<stdio.h>
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf("ARC")}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s297233935 | p03813 | C++ | include<stdio.h>
int main ()
{
int x;
scanf("%d",&x);
if(x<120)
{ printf("ABC")}
else
{printf(ARC)}
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<stdio.h>
| ^~~~~~~
|
s496205565 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int n0;
cin>>n;
if(n<1200)
cout<<"ABC";
else
cout<<"ARC";
return 0;
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'n0'?
5 | cin>>n;
| ^
| n0
|
s846872763 | p03813 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin >> x;
if(x<1200) puts("ABC");
else puts("ARC");
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | 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:16: error: 'puts' was not declared in this scope
7 | if(x<1200) puts("ABC");
| ... |
s525642488 | p03813 | C++ | using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
int main() {
ios_base::sync_with_stdio(false);
int n;
cin >> n;
if (n < 1200) {
cout << "ABC" << endl;
} else {
cout << "ARC" << endl;
}
return 0;
}
| a.cc:4:9: error: 'pair' does not name a type
4 | typedef pair<int, int> PII;
| ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios_base' has not been declared
8 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
a.cc:10:5: error: 'cin' was not declared in this scope
10 | ci... |
s647543269 | p03813 | C | #include <stdio.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:5:19: error: expected ';' before 'if'
5 | scanf("%d",&x)
| ^
| ;
6 | if(x<1200) printf("ABC\n");
| ~~
main.c:7:9: error: 'else' without a previous 'if'
7 | else printf("ARC\n");
... |
s233115038 | p03813 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
}
}
| Main.java:7: error: cannot find symbol
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
^
symbol: method pritnln(a < 1200 ?[...]"ARC")
location: variable out of type PrintStream
1 error
|
s199688466 | p03813 | Java | import java.util.Scanner;
public class ABCARC {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
}
}
| Main.java:3: error: class ABCARC is public, should be declared in a file named ABCARC.java
public class ABCARC {
^
Main.java:7: error: cannot find symbol
System.out.pritnln(a < 1200 ? "ABC" : "ARC");
^
symbol: method pritnln(a < 1200 ?[...]"ARC")
location: variable out of type PrintStream
2 e... |
s236144902 | p03813 | Java | package abc0603;
import java.util.Scanner;
public class C004 {
public static void main(String args[]){
Scanner cin = new Scanner(System.in);
long target = cin.nextLong();
cin.close();
long tmp = (long)target/11;
long result;
if(target==tmp*11){
result = tmp*2;
}else if(target-tmp*11<=6){
result... | Main.java:5: error: class C004 is public, should be declared in a file named C004.java
public class C004 {
^
1 error
|
s766944779 | p03813 | Java | public class Atcoder {
public static void main(String args[]){
int x = new java.util.Scanner(System.in).nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
}
}
| Main.java:1: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
^
1 error
|
s270867529 | p03813 | C++ | #include<iostream>
using namespace std;
int main()
{
int64 x;
cin >> x;
int64 times = x / 11;
int64 a = x % 11;
int64 add = 0;
if (a){
add = 1;
if (a > 6){
add = 2;
}
}
cout << times*2+add;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
6 | int64 x;
| ^~~~~
| int64_t
a.cc:7:16: error: 'x' was not declared in this scope
7 | cin >> x;
| ^
a.cc:9:14: error: expected ';' b... |
s979807937 | p03813 | Java | /**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Alan
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWr... | Main.java:28: error: cannot find symbol
private final PrintWriter writer;
^
symbol: class PrintWriter
location: class OutputWriter
Main.java:30: error: cannot find symbol
public OutputWriter(OutputStream outputStream) {
^
symbol: class OutputSt... |
s313700442 | p03813 | C++ | #include<iostream>
using namespace std;
int main{
int x;
cin>>x;
if(x>=1200){
cout<<"ARC"<<endl;}
else{
cout<<"ABC"<<endl;}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int x;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:6... |
s459070889 | p03813 | C++ | #include<iostream>
using namespace std;
int main{
int x;
cin>>x>>;
if(a>=1200){
cout<<"ABC"<<endl;}
else{
cout<<"ARC"<<endl;}
return 0;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
4 | int x;
| ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:6... |
s890315843 | p03813 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _... | a.cc: In function 'int main()':
a.cc:39:13: error: 'flag2' was not declared in this scope; did you mean 'flag'?
39 | flag2 = true;
| ^~~~~
| flag
|
s934038813 | p03813 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<stdio.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<1200){
cout<<"ABC";
}else{
cout<<"ARC";
}
cout<<endl;
return 0;
} | a.cc:7:1: error: extended character is not valid in an identifier
7 |
| ^
a.cc:7:1: error: '\U000000a0' does not name a type
7 |
| ^
|
s842856709 | p03813 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<stdio.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<1200){
cout<<"ABC";
}else(n<2000){
cout<<"ARC";
}
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '{' token
13 | }else(n<2000){
| ^
| ;
|
s015653040 | p03813 | C++ | #include <iostream>
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:9: error: expected primary-expression before ';' token
6 | cin>>x>>;
| ^
|
s406200310 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s560487716 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else if(x <= 3000){
System.out.println("ARC");... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s643938657 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x <= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s094425778 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(1 <= x && x < 1200){
System.out.println("ABC");
}else if(1200 < x && x <= 3000){
Syst... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s240723158 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x >= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s827116626 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x <= 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s114351334 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s447043505 | p03813 | Java | import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
x = scanner.nextInt();
if(x < 1200){
System.out.println("ABC");
}else{
System.out.println("ARC");
}
... | Main.java:3: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s502026729 | p03813 | C++ | #include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int x;
scanf_s("%d",&x);
if(x < 1200){
printf("ABC\n");
}
else{
printf("ARC\n");
}
return 0;
}
| a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s783891122 | 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");
} else {
System.out.println("ARC");
}
}
} | Main.java:1: error: cannot find symbol
import java.util;
^
symbol: class util
location: package java
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(Syste... |
s272296482 | p03813 | Java | import java.util;
public static void main() {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if (a < 1200) {
System.out.println("ABC");
} else {
System.out.println("ARC");
}
}
| Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s252451510 | p03813 | C++ | #include <stdio.h>
int main{
int x=0;
scanf("%d",&x)
if(x<1200){
printf("ABC");
} else {
printf("ARC");
}
return 0;
} | a.cc:2:5: error: cannot declare '::main' to be a global variable
2 | int main{
| ^~~~
a.cc:3:5: error: expected primary-expression before 'int'
3 | int x=0;
| ^~~
a.cc:3:5: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
2 | int main{
| ^
a.cc:4:10: e... |
s847305306 | p03813 | C++ | #include <bits/stdc++.h>
2 using namespace std;
3 int main(void) {
4 int n;
5 cin >> n;
6 if(n<... | a.cc:2:3: error: expected unqualified-id before numeric constant
2 | 2 using namespace std;
| ^
a.cc:3:3: error: expected unqualified-id before numeric constant
3 | 3 int main(void) {
| ^
|
s781390311 | p03813 | C++ | #include<stdio.h>
#include<stdlib.h>
int x;
int main(void){
scanf("%d",&x);
if(x<1200){
printf("ABC")
}
else{
printf("ARC");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before '}' token
8 | printf("ABC")
| ^
| ;
9 | }
| ~
|
s172531239 | p03813 | C++ | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include <iomanip>
typedef long long int ll;
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define REP(i,n) for (int i=0;i<(n);i++)
#define EREP... | a.cc: In function 'int main()':
a.cc:46:21: error: incompatible types in assignment of 'bool' to 'bool [100010]'
46 | if(!f[A[i]]){f=true;ans++}
| ~^~~~~
a.cc:46:32: error: expected ';' before '}' token
46 | if(!f[A[i]]){f=true;ans++}
| ^
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.