submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s618958116
p03811
C++
#include<iostream> #include<algorithm> using namespace std; int Eulg(int a, int b); int main(int argc, char *argv[]){ int N; cin>>N; int *a = new int[N](); for(int i=0; i<N; i++){ cin>>a[i]; } sort(a, a+N); bool flag = true; while(flag){ for(int i=0; i<N; i++){ for(int j=i+1; j<N; j++){ if(Eulg(...
a.cc: In function 'int main(int, char**)': a.cc:29:48: error: 'b' was not declared in this scope 29 | a[i] = b[i]; | ^
s778662785
p03811
C++
#include<iostream> #include<algorithm> using namespace std; int Eulg(int a, int b); int main(int argc, char *argv[]){ int N; cin>>N; int *a = new int[N](); for(int i=0; i<N; i++){ cin>>a[i]; } sort(a, a+N); bool flag = true; while(flag){ for(int i=0; i<N; i++){ for(int j=i+1; j<N; j++){ if(Eulg(...
a.cc: In function 'int main(int, char**)': a.cc:29:48: error: 'b' was not declared in this scope 29 | a[i] = b[i]; | ^
s717742136
p03811
C++
#include<iostream> #include<algorithm> using namespace std; int Eulg(int a, int b); int main(int argc, char *argv[]){ int N; cin>>N; int *a = new int[N](); for(int i=0; i<N; i++){ cin>>a[i]; } sort(a, a+N); bool flag = true; while(flag){ for(int i=0; i<N; i++){ for(int j=i+1; j<N; j++){ if(Eulg(...
a.cc: In function 'int main(int, char**)': a.cc:29:48: error: 'b' was not declared in this scope 29 | a[i] = b[i]; | ^
s028131691
p03811
C++
#include <cstdio> #include <algorithm> #include <stack> #include <queue> #include <deque> #include <vector> #include <string> #include <string.h> #include <cstdlib> #include <ctime> #include <cmath> #include <map> #include <set> #include <iostream> #include <sstream> #include <numeric> #include <cctype> #include <bitse...
a.cc: In function 'int main()': a.cc:152:7: error: conflicting declaration 'vvi a' 152 | vvi a; | ^ a.cc:147:6: note: previous declaration as 'vi a' 147 | vi a(n); | ^
s605555995
p03812
C++
#include <iostream> #include <stdio.h> using namespace std; const int N = 3005; int n, tot, a[N], lnk[N], son[N << 1], nxt[N << 1]; bool win[N]; void add(int x, int y) { nxt[++tot] = lnk[x], lnk[x] = tot, son[tot] = y; } void dfs(int x, int p) { win[x] = 0; for (int j = lnk[x]; j; j = nxt[j]) ...
a.cc: In function 'int main()': a.cc:25:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 25 | scanf_s("%d", &n); | ^~~~~~~ | scanf
s225838633
p03812
C++
#include <iostream> #include <stdio.h> using namespace std; const int N = 3005; int n, tot, a[N], lnk[N], son[N << 1], nxt[N << 1]; bool win[N]; void add(int x, int y) { nxt[++tot] = lnk[x], lnk[x] = tot, son[tot] = y; } void dfs(int x, int p) { win[x] = 0; for (int j = lnk[x]; j; j = nxt[j]) ...
a.cc: In function 'int main()': a.cc:25:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 25 | scanf_s("%d", &n); | ^~~~~~~ | scanf
s512420616
p03812
C++
#include <cstdio> #include <vector> using namespace std; int n; int arr[3005]; int depth[3005]; vector<int> al[3005]; bool dfs(int i){ if (depth[i]&1){ bool trap=true; for (auto &it:al[i]){ if (arr[it]<arr[i]) trap=false; } if (trap) return true; } for (auto...
a.cc: In function 'bool dfs(int)': a.cc:28:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 28 | int main(){ | ^~ a.cc:28:9: note: remove parentheses to default-initialize a variable 28 | int main(){ | ^~ | -- a.cc:28:9: note: or...
s645367494
p03812
C++
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ff first #define ss second const long long MAXN = 3e3 + 21, LG = 20, inf = 1e18; int n; int a[MAXN]; bool dp[MAXN]; vector<int> adj[MAXN]; void dfs(int v, int par = -1){ dp[v] = 0; for(auto &y: adj[v]) if(y ^ par && a[v] > a[...
a.cc: In function 'int main()': a.cc:25:39: error: 'can' was not declared in this scope; did you mean 'tan'? 25 | ios_base::sync_with_stdio(false), can.tie(0), cout.tie(0); | ^~~ | tan
s231303645
p03812
C++
#include<iostream> #include<vector> using namespace std; bool check[3001]; int n,x,y,w[3001]; vector<int> point[3001]; bool dfs(int u,int f) { check[u]=false; for(int v:point[])if(v!=f&&w[v]<w[u]) { dfs(v,u); if(!check[v]) { check[u]=true; break; } } } int main() { cin>>n; for(int i=1;i<=n;i++) ...
a.cc: In function 'bool dfs(int, int)': a.cc:10:25: error: expected primary-expression before ']' token 10 | for(int v:point[])if(v!=f&&w[v]<w[u]) { | ^ a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^
s646637175
p03812
C++
#include<iostream> #include<vector> using namespace std; bool check[3001]; int n,x,y,w[3001]; vector<int> point[3001]; bool dfs(int u,int f) { check[u]=false; for(int v:point[])if(v!=f&&w[v]<w[u]) { dfs(v,u); if(!check[v]) { check[u]=true; break; } } } int main() { cin>>n; for(int i=1;i<=n;i++) ...
a.cc: In function 'bool dfs(int, int)': a.cc:10:25: error: expected primary-expression before ']' token 10 | for(int v:point[])if(v!=f&&w[v]<w[u]) { | ^ a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ a.cc: In function '...
s219170508
p03812
C++
#include<stdio.h> #include<vector> bool check[3005]; int n,x,y,w[3005]; vector<int> point[3005]; int dfs(int a,int k) { check[a]=false; for(int v:point[a])if(v!=k&&w[v]<w[a]) { dfs(v,a); if(!check[v]) { check[a]=true; break; } } } int main() { scanf("%d",&n); for(int i=1; i<=n; ++i) scanf("%d"...
a.cc:5:1: error: 'vector' does not name a type 5 | vector<int> point[3005]; | ^~~~~~ a.cc: In function 'int dfs(int, int)': a.cc:8:19: error: 'point' was not declared in this scope; did you mean 'printf'? 8 | for(int v:point[a])if(v!=k&&w[v]<w[a]) { | ^~~~~ | ...
s553074770
p03812
C++
#include <cstdio> #include <iostream> #include <algorithm> #define MN 3010 std::vector<int> v[MN]; int c[MN], p[MN]; bool ok[MN]; bool cmp(int a, int b) {return c[a] < c[b];} int main() { int n; scanf("%d", &n); for(int i = 1; i <= n; i++) scanf("%d", &c[i]), p[i] = i; std::sort(p + 1, p + n + 1, cmp); for(int i...
a.cc:6:6: error: 'vector' in namespace 'std' does not name a template type 6 | std::vector<int> v[MN]; | ^~~~~~ a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 3 | #include <algorithm> +++ |+#include <vector> 4 | #define MN 3...
s979864029
p03812
C++
#include<bits/stdc++.h> using namespace std; bool check[3001]; int n,x,y,w[3001],i; vector<int> point[3001]; bool dfs(int u,int f) { check[u]=false; for(int v:point[u]) if(v!=f&&w[v]<w[u]) { dfs(v,u); if(!check[v]) { check[u]=true; break; } } int main() { cin>>n; for(i=1;i...
a.cc: In function 'bool dfs(int, int)': a.cc:19:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 19 | int main() | ^~ a.cc:19:9: note: remove parentheses to default-initialize a variable 19 | int main() | ^~ | -- a.cc:19:9: note:...
s551905673
p03812
C++
#include<bits/stdc++.h> using namespace std; bool check[3001]; int n,x,y,w[3001],i; vector<int> point[3001]; bool dfs(int u,int f) { check[u]=false; for(int v:point[u]) if(v!=f&&w[v]<w[u]) { dfs(v,u); if(!check[v]) { check[u]=true; break; } } int main() { cin>>n; for(i=1;i...
a.cc: In function 'bool dfs(int, int)': a.cc:19:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 19 | int main() | ^~ a.cc:19:9: note: remove parentheses to default-initialize a variable 19 | int main() | ^~ | -- a.cc:19:9: note:...
s423737455
p03812
C++
#include<bits/stdc++.h> using namespace std; bool check[3001]; int n,x,y,w[3001],i; vector<int> point[3001]; bool dfs(int u,int f) { check[u]=false; for(int v:point[u]) if(v!=f&&w[v]<w[u]) { dfs(v,u); if(!check[v]) check[u]=true,break; } int main() { cin>>n; for(i=1;i<=n;++i) scanf(...
a.cc: In function 'bool dfs(int, int)': a.cc:14:55: error: expected primary-expression before 'break' 14 | check[u]=true,break; | ^~~~~ a.cc:17:9: warning: empty parentheses were disambiguated as a function declaratio...
s953179865
p03812
C++
main()
a.cc:1:7: error: expected constructor, destructor, or type conversion at end of input 1 | main() | ^
s257147768
p03812
C++
#include<iostream> #include<string> #include<algorithm> #include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> using namespace std; typedef long long s64; const int ONE = 1000005; const int MOD = 1e9 + 7; int get() { int res = 1, Q = 1; char c; while( (c = getchar()) < 48 || c > 57) if(c == '-') ...
a.cc: In function 'void Add(int, int)': a.cc:30:17: error: reference to 'next' is ambiguous 30 | next[++tot] = first[u], first[u] = tot, go[tot] = v; | ^~~~ In file included from /usr/include/c++/14/string:47, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s813405410
p03812
C++
#include<bits/stdc++.h> using namespace std; int n,i,j,A[2000000],x,y; int fa[2000000],first[2000000],top,next[5000000],last[5000000],to[5000000]; bool lost[2000000],win[2000000]; inline void add(int x,int y) { top++,to[top]=y; if(first[x]==0)first[x]=top;else next[last[x]]=top; last[x]=top; } void dfs(int x) { int...
a.cc: In function 'void add(int, int)': a.cc:9:42: error: reference to 'next' is ambiguous 9 | if(first[x]==0)first[x]=top;else next[last[x]]=top; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:66, from /usr/include/c++/14...
s107981748
p03812
C++
#pragma GCC optimize(3) #include<bits/stdc++.h> using namespace std; int n,i,j,A[2000000],x,y; int fa[2000000],first[2000000],top,next[5000000],last[5000000],to[5000000]; bool lost[2000000],win[2000000]; inline void add(int x,int y) { top++,to[top]=y; if(first[x]==0)first[x]=top;else next[last[x]]=top; last[x]=top; ...
a.cc: In function 'void add(int, int)': a.cc:10:42: error: reference to 'next' is ambiguous 10 | if(first[x]==0)first[x]=top;else next[last[x]]=top; | ^~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:66, from /usr/include/c++/1...
s506586171
p03812
C++
#include<bits/stdc++.h> using namespace std; namespace fastIO{ #define BUF_SIZE 100005 #define OUT_SIZE 100005 #define ll long long //fread->read bool IOerror=0; inline char nc(){ static char buf[BUF_SIZE],*p1=buf+BUF_SIZE,*pend=buf+BUF_SIZE; if (p1==pend){ p1=buf; p...
a.cc: In function 'void fastIO::readln2(char*)': a.cc:105:34: error: 'gets' was not declared in this scope; did you mean 'getw'? 105 | inline void readln2(char *s){gets(s);} | ^~~~ | getw
s553113193
p03812
C++
#include<cstdio> #include<cstring> #include<cstdlib> #include<algorithm> using namespace std; typedef long long ll; const int maxn=10010; int pre[maxn], nxt[maxn], to[maxn], A[maxn], tot=1; bool vis[maxn],res[maxn]; vector<int>ans; bool dfs(int x){ if(vis[x])return res[x]; vis[x]=1; bool flag=false; for(int t=pre[x...
a.cc:10:1: error: 'vector' does not name a type 10 | vector<int>ans; | ^~~~~~ a.cc: In function 'bool dfs(int)': a.cc:21:17: error: 'ans' was not declared in this scope; did you mean 'abs'? 21 | if(flag)ans.push_back(x); | ^~~ | abs a.cc: In function 'int ...
s749188498
p03812
C++
#include<iostream> #include<vector> #include<algorithm> #include<cstring> #include<cstdio> #include<cmath> #include<cstdlib> #include<ctime> #include<queue> #include<set> using namespace std; typedef long long LL; const int N=3010; int gi() { int w=0;bool q=1;char c=getchar(); while ((c<'0'||c>'9') && c!='-') c=getch...
a.cc: In function 'int main()': a.cc:32:44: error: reference to 'next' is ambiguous 32 | deg[to[++tot]=b]++,next[tot]=head[a],head[a]=tot; | ^~~~ In file included from /usr/include/c++/14/string:47, from /usr/include/c++/14/bit...
s468136079
p03812
C++
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define all(x) (x).begin(),(x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) #define zero(x) (((x)>0?(x):-(x))<eps) typedef vector<int> VI; typedef long long LL; typedef pair<int,int>PII; const double eps=...
a.cc: In function 'int dfs(int)': a.cc:25:12: error: 'a' was not declared in this scope 25 | if(a[x]>a[i]&&sg[i]==0){ | ^ a.cc:30:1: warning: no return statement in function returning non-void [-Wreturn-type] 30 | } | ^ a.cc: In function 'int main()': a.cc:36:32: error: 'a' was not ...
s537951838
p03812
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using u32 = uint32_t; using vi = vector<int>; using vvi = vector<vi>; using vb = vector<bool>; using vvb = vector<vb>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<double>; using vvd = vector<vd>; #...
a.cc: In function 'int main()': a.cc:69:2: error: expected '}' at end of input 69 | } | ^ a.cc:32:12: note: to match this '{' 32 | int main() { | ^
s977975736
p03813
C
#include <bits/stdc++.h> #include <algorithm> #include <array> #ifdef _MSC_VER #include <intrin.h> #endif namespace atcoder { namespace internal { // @param n `0 <= n` // @return minimum non-negative `x` s.t. `n <= 2**x` int ceil_pow2(int n) { int x = 0; while ((1U << x) < (unsigned int)(n)) x++; retur...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s429321852
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:8:22: warning: missing terminating " character 8 | else cout << "ARC; | ^ a.cc:8:22: error: missing terminating " character 8 | else cout << "ARC; | ^~~~~ a.cc: In function 'int main()': a.cc:9:1: error: expected primary-expression befor...
s367791722
p03813
C
#include<stdio.h> int sum(int a){ if(a<1200) return "ABC"; else return "ARC"; } int main(){ int a; scnaf("%d",&a); printf("%s",sum(a)); return 0; }
main.c: In function 'sum': main.c:4:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] 4 | return "ABC"; | ^~~~~ main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointe...
s938482389
p03813
C
#include<stdio.h> int may(int a){ if(a<1200) return "ABC"; else return "ARC"; } int main(){a int a; scnaf("%d",&a); printf("%s",may(a)); return 0; }
main.c: In function 'may': main.c:4:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] 4 | return "ABC"; | ^~~~~ main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointe...
s532824103
p03813
C++
#include<iostream> #include<string> string may(int a){ if(a<1200) return 'ABC'; else return 'ARC'; } int main(){ int a; cin>>a; cout<<may(a); return 0; }
a.cc:5:12: warning: multi-character character constant [-Wmultichar] 5 | return 'ABC'; | ^~~~~ a.cc:7:12: warning: multi-character character constant [-Wmultichar] 7 | return 'ARC'; | ^~~~~ a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'? 3 | st...
s165437682
p03813
C++
#include<iostream> #include<string> int may(int a){ string g="ABC"; string h="ARC"; if(a<1200) return g; else return h; } int main(){ int a; cin>>a; cout<<may(a); return 0; }
a.cc: In function 'int may(int)': a.cc:4:3: error: 'string' was not declared in this scope 4 | string g="ABC"; | ^~~~~~ a.cc:4:3: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/o...
s322893979
p03813
C++
#include<iostream> #include<string> int may(int a){ string g='ABC'; string h='ARC'; if(a<1200) return g; else return h; } int main(){ int a; cin>>a; cout<<may(a); return 0; }
a.cc:4:12: warning: multi-character character constant [-Wmultichar] 4 | string g='ABC'; | ^~~~~ a.cc:5:12: warning: multi-character character constant [-Wmultichar] 5 | string h='ARC'; | ^~~~~ a.cc: In function 'int may(int)': a.cc:4:3: error: 'string' was not declared in ...
s913373554
p03813
C++
#include<iostream> int may(int a){ if(a<1200) return 'ABC'; else return 'ARC'; } int main(){ int a; cin>>a; cout<<may(a); return 0; }
a.cc:4:12: warning: multi-character character constant [-Wmultichar] 4 | return 'ABC'; | ^~~~~ a.cc:6:12: warning: multi-character character constant [-Wmultichar] 6 | return 'ARC'; | ^~~~~ a.cc: In function 'int main()': a.cc:10:3: error: 'cin' was not declared in this...
s348971885
p03813
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; ll GetDigit(ll num){ return log10(num)+1; } //numの桁数を求める int main() { int x; cin >> x; if(x < 1200) cout << "ABC" << endl; else cout << "ARC" << end; return 0; }
a.cc: In function 'int main()': a.cc:12:24: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | else cout << "ARC" << end; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from...
s977015417
p03813
C++
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i,n) for(long long i=0; i<(int)n; i++) #define rep2(i,a,n) for(long long i=(a); i<(int)(n); i++) #define all(vec) vec.begin(),vec.end() using vi = vector<int>; using vs = vector<string>; using vvi = vector<vi>; using pii = pair<int, int>; u...
a.cc: In function 'int main()': a.cc:25:3: error: return-statement with no value, in function returning 'int' [-fpermissive] 25 | return; | ^~~~~~
s705365850
p03813
C
#include<stdio.h> #include<string.h> using namespace std; int main() { int n; while(~scanf("%d",&n)) { if(n<1200)printf("ABC\n"); else printf("ARC\n"); } }
main.c:3:5: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~
s069392466
p03813
C++
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n<=1200) cout<<"ABC"; else(n>1200 && n<=3000) cout<<"ARC"; }
a.cc: In function 'int main()': a.cc:10:32: error: expected ';' before 'cout' 10 | else(n>1200 && n<=3000) | ^ | ; 11 | cout<<"ARC"; | ~~~~
s776546909
p03813
C++
#include <iostream> using namespace std; int main(){ int r; cin >> r; if(r < 1200){ cout << "ABC" << endl; else{ cout << "ARC" << endl; } }
a.cc: In function 'int main()': a.cc:10:3: error: expected '}' before 'else' 10 | else{ | ^~~~ a.cc:8:15: note: to match this '{' 8 | if(r < 1200){ | ^
s837527090
p03813
C++
#include <iostream> using namespace std; int main(){ int r; cin >> r; cout << r < 1200 ? "ABC" : "ARC" << endl; }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 8 | cout << r < 1200 ? "ABC" : "ARC" << endl; | ~~~~~~~~~ ^ ~~~~ | | | | | int | std::basic_ostream<char> a.cc:8:13: note: ca...
s036405257
p03813
C++
#include<iostream> using namespace std; int main(){ cin>>n; if(n<1200){ cout<<"ABC"; } else cout<<"ARC"; }
a.cc: In function 'int main()': a.cc:4:8: error: 'n' was not declared in this scope 4 | cin>>n; | ^
s906125037
p03813
C++
#include <bits/stdc++.h> #define pi 3.14159 using namespace std; typedef long long LL; const LL MOD = 1e9 + 7; const int N = 1e5 + 7, M = 1e7, OO = 0x3f3f3f3f; #define AC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin.sync_with_stdio(0); int main() { int x; cin>>x; if(x<1200) cout<<"ABC"; else cout<<cout<<...
a.cc: In function 'int main()': a.cc:15:9: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::ostream' {aka 'std::basic_ostream<char>'}) 15 | cout<<cout<<"ARC"; | ~~~~^~~~~~ | | | | | basic_ostream<[...]> | ...
s438023380
p03813
C++
#incude<bits/stdc++.h> using namespace std; int main() { long long n; cin>>n; if (n<1200) { cout<<"ABC"<<endl; } else { cout<<"ARC"<<endl; } }
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include? 2 | #incude<bits/stdc++.h> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:7:5: error: 'cin' was not declared in this scope 7 | cin>>n; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<ios...
s147313778
p03813
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new scanner(System.in); int x = scanner.nextInt(); if(x < 1200) { System.out.println("ABC"); } else { System.out.println("ARC"); } } }
Main.java:5: error: cannot find symbol Scanner scanner = new scanner(System.in); ^ symbol: class scanner location: class Main 1 error
s009712112
p03813
C
#include <stdio.h> int main(){ long x, z, y=0; scanf("%ld",&x); tmp=z; result+=(z/11)*2; z=z%11; if(7<=z){ result+=2; } else if(1<=z && z<7) { result+=1; } printf("%ld",y); }
main.c: In function 'main': main.c:6:3: error: 'tmp' undeclared (first use in this function) 6 | tmp=z; | ^~~ main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in main.c:8:3: error: 'result' undeclared (first use in this function) 8 | result+=(z/11)*2; ...
s287539668
p03813
C++
//#include <bits/stdc++.h> #include <iostream> #include <cstdio> #include <algorithm> #include <cstdlib> #include <string> #include <vector> #include <map> #include <queue> using namespace std; typedef long long ll; typedef vector<int> vint; typedef vector<vector<int> > vvint; typedef vector<long long> vll, vLL; type...
a.cc: In function 'int main()': a.cc:40:20: error: expected ';' before '}' token 40 | puts("ARC") | ^ | ; 41 | } | ~
s130226010
p03813
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Sacnner(System.in); int x = sc.nextInt(); System.out.println(x<1200 ? "ABC" : "ARC"); } }
Main.java:5: error: cannot find symbol Scanner sc = new Sacnner(System.in); ^ symbol: class Sacnner location: class Main 1 error
s829725167
p03813
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int x; cin >>x; if(x < 1200) { cout << ABC << endl; } if(x > 1200) { cout << ARC << endl; } }
a.cc: In function 'int main()': a.cc:9:16: error: 'ABC' was not declared in this scope 9 | cout << ABC << endl; | ^~~ a.cc:13:16: error: 'ARC' was not declared in this scope 13 | cout << ARC << endl; | ^~~
s425470256
p03813
C++
int main(void){ string s; cin >> s; int b, e; for(int i = 0; i < s.size(); i++){ if(s.at(i) == 'A'){ b = i; break; } } for(int i = s.size()-1; i>=0; i--){ if(s.at(i) == 'Z'){ e = i; break; } } cout << e-b+1 << endl; return 0; }
a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string s; | ^~~~~~ a.cc:3:3: error: 'cin' was not declared in this scope 3 | cin >> s; | ^~~ a.cc:3:10: error: 's' was not declared in this scope 3 | cin >> s; | ^ a.cc:17:3: err...
s258617136
p03813
Java
import java.util.Scanner; public class Abc { public static void main(String[] args){ System.out.println("レートを入力してください。"); String score = new Scanner(System.in).nextLine(); int sukeme_score = Integer.parseInt(score); if (sukeme_score < 1200 && sukeme_score >= 1){ System.out.println("ABC"); ...
Main.java:3: error: class Abc is public, should be declared in a file named Abc.java public class Abc { ^ 1 error
s812612442
p03813
Java
import java.util.Scanner; public class Abc { public static void main(String[] args){ System.out.println("レートを入力してください。"); String score = new Scanner(System.in).nextLine(); int sukeme_score = Integer.parseInt(score); if (sukeme_score < 1200 && sukeme_score >= 1){ System.out.println("ABC"); ...
Main.java:3: error: class Abc is public, should be declared in a file named Abc.java public class Abc { ^ 1 error
s005050199
p03813
Java
import java.util. public class Abc { public static void main(String[] args){ System.out.println('レートを入力してください。') String score = new Scanner(System.in).nextLine(); int sukeme_score = Integer.parseInt(score); if (sukeme_score < 1200 && sukeme_score >= 1){ System.out.println("ABC"); } else if (sukeme_s...
Main.java:1: error: <identifier> expected import java.util. ^ Main.java:5: error: unclosed character literal System.out.println('?????????????') ^ Main.java:5: error: illegal character: '\u3002' System.out.println('?????????????') ^ Main.java:5: er...
s499391210
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x>=1200){ cout<<"ARC"<<endl }else{ cout<<"ABC"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:22: error: expected ';' before '}' token 9 | cout<<"ARC"<<endl | ^ | ; 10 | }else{ | ~
s971663277
p03813
C
#include<stdio.h> int main() { int x; scanf("%d"); if(x<1200)printf("ABC\n"); else(x>=1200)printf("ARC\n"); return 0; }
main.c: In function 'main': main.c:10:15: error: expected ';' before 'printf' 10 | else(x>=1200)printf("ARC\n"); | ^~~~~~ | ;
s208244608
p03813
C
#include<stdio.h> int main() { int x; scanf("%d"); if(x<1200)printf("ABC\n"); else(x>=1200)printf("ARC\n"); return 0; }i
main.c: In function 'main': main.c:10:15: error: expected ';' before 'printf' 10 | else(x>=1200)printf("ARC\n"); | ^~~~~~ | ; main.c: At top level: main.c:13:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input 13 | }i | ^
s889987229
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; if(x < 1200)cout << "ABC\n"; else cout << "ARC\n; return 0; }
a.cc:8:16: warning: missing terminating " character 8 | else cout << "ARC\n; | ^ a.cc:8:16: error: missing terminating " character 8 | else cout << "ARC\n; | ^~~~~~~ a.cc: In function 'int main()': a.cc:10:3: error: expected primary-expression before 'return' 10 ...
s466592284
p03813
C++
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; if(x < 1200)cout << "ABC\n"; else cout << "ARC\n; }
a.cc:8:16: warning: missing terminating " character 8 | else cout << "ARC\n; | ^ a.cc:8:16: error: missing terminating " character 8 | else cout << "ARC\n; | ^~~~~~~ a.cc: In function 'int main()': a.cc:9:1: error: expected primary-expression before '}' token 9 ...
s216514206
p03813
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int s; cin >> s; if (s < 1200) cout << "ABC" << endl; else cout << "ARC" <<< endl; }
a.cc: In function 'int main()': a.cc:9:24: error: expected primary-expression before '<' token 9 | else cout << "ARC" <<< endl; | ^
s664201888
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:30: error: expected '}' at end of input 9 | else cout << "ARC" << endl; | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s930092736
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: In function 'int main()': a.cc:13:18: error: expected ';' before '}' token 13 | cout << "ARC" | ^ | ; 14 | 15 | } | ~
s509315162
p03813
C++
#include<iostream> int main(){ int x; cin >> x; std::cout << (x < 1200 ? "ABC\n" : "ARC\n"); return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | 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 | extern istream cin; ...
s260836833
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:14: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | int x; cin << x; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>...
s210615572
p03813
C++
#include<iostream> #include<conio.h> using namespace std; int main() { int a; cin>>a; (a<1200)?cout<<"ABC":cout<<"ARC"; getch(); }
a.cc:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s721826277
p03813
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for(int i = 0; i < n; i++) #define sort(v) sort((v).begin(), (v).end()) using vi = vector<int>; const int MOD = 1e9+7; bool IsPrime(int num){ if (num < 2) return false; else if (num == 2) return true; else if (num %...
a.cc: In function 'int main()': a.cc:21:9: error: 'cinn' was not declared in this scope 21 | cinn >> x; | ^~~~
s751884062
p03813
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for(int i = 0; i < n; i++) #define sort(v) sort((v).begin(), (v).end()) using vi = vector<int>; const int MOD = 1e9+7; bool IsPrime(int num){ if (num < 2) return false; else if (num == 2) return true; else if (num % ...
a.cc: In function 'int main()': a.cc:21:9: error: 'cinn' was not declared in this scope 21 | cinn >> x; | ^~~~ a.cc:22:30: error: 'ABC' was not declared in this scope 22 | if(x < 1200) cout << ABC << endl; | ^~~ a.cc:23:22: error: 'ARC' was not decl...
s266337838
p03813
C++
#include <iostream> #include <algorithm> #include <math.h> #include <vector> #include <string> #include <queue> #include <map> #include <utility> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) /* 大文字を小文字に変換 tolower*/ /* 小文字を大文字に変換 toupper*/ int main () { int x; ccin...
a.cc: In function 'int main()': a.cc:17:3: error: 'ccin' was not declared in this scope 17 | ccin >> x; | ^~~~
s201902354
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(a<1200){ System.out.println("ABC"); }else{ System.out.println("ARC"); } } }
Main.java:6: error: cannot find symbol if(a<1200){ ^ symbol: variable a location: class Main 1 error
s696285873
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ std::ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long test; test=1; while(test--) { long i,j,n,m,q,a=0,t,b,c,temp,k,maxpeak=0,peak,d; cin>>n; if(n<1200)cout<<"ABC"; else cout<<"ARC"; ...
a.cc: In function 'int main()': a.cc:16:6: error: expected '}' at end of input 16 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s263619647
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { int x; cin>>x; if(x<1200) cout<<"ABC"<<endl; else cour<<"ARC"<<endl; }
a.cc: In function 'int main()': a.cc:7:8: error: 'cour' was not declared in this scope 7 | else cour<<"ARC"<<endl; | ^~~~
s399373147
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:8:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 8 | cout << "ABC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include...
s171945227
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:8:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 8 | cout << "ABC" < endl; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include...
s257377118
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:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s168638701
p03813
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); ++i) #define fin(ans) cout << (ans) << endl; #define blank(ans) cout << (ans) << " "; #define mp(p, q) make_pair(p, q) #define pb(n) push_back(n) #define all(a) a.begin(), a.end() typedef long long ll; typedef long long lli; type...
a.cc: In function 'void Main()': a.cc:42:1: error: expected primary-expression before '}' token 42 | } | ^
s677233526
p03813
C++
int main() { int N; cin >> N; if(N >= 1200) cout << "ARC"; else { cout << "ABC"; } }
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin >> N; | ^~~ a.cc:6:9: error: 'cout' was not declared in this scope 6 | cout << "ARC"; | ^~~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout << "ABC"; ...
s086006737
p03813
C++
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for(int i = 0; i < (int)(n); i++) int main(){ int x; cin>>x; if (x<1200) { /* code */ cout<<"ABC"<endl; } else { cout<<"ARC"<<endl; } }
a.cc: In function 'int main()': a.cc:12:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | cout<<"ABC"<endl; | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/regex:68, from /usr/include...
s133933988
p03813
C
#include<stdio.h> int main(void){ int x; scnaf("%d",&x); if(x<1200){ printf("ABC"); } else { printf("ARC"); } return 0; }
main.c: In function 'main': main.c:4:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scnaf("%d",&x); | ^~~~~ | scanf
s762287782
p03813
C++
#include <iostream> using namespace std; int main(){ int a, cin>>a; string ret; if(a<1200){ ret="ABC"; }else{ ret="ARC"; } return 0; }
a.cc: In function 'int main()': a.cc:5:6: error: expected initializer before '>>' token 5 | cin>>a; | ^~
s570205908
p03813
C++
#include <iostream> using namespace std ; int main() { int N cin << N; if(N<1200 ) cout >> "ABC"; else if (N>= 1200) cout >>"ARC"; return 0; }
a.cc: In function 'int main()': a.cc:6:1: error: expected initializer before 'cin' 6 | cin << N; | ^~~ a.cc:8:5: error: 'N' was not declared in this scope 8 | if(N<1200 ) | ^ a.cc:9:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const...
s969485951
p03813
C
#include <stdio.h> int main(x){ int x;scanf("%d",&x); printf("%s",(x<1200)?"ABC":"ARC"); }
main.c: In function 'main': main.c:2:5: error: type of 'x' defaults to 'int' [-Wimplicit-int] 2 | int main(x){ | ^~~~ main.c:3:8: error: 'x' redeclared as different kind of symbol 3 | int x;scanf("%d",&x); | ^ main.c:2:5: note: previous definition of 'x' with type 'int' 2 | int mai...
s260997852
p03813
C
int main(x){ int x;scanf("%d",&x); printf("%s",(x<1200)?"ABC":"ARC"); }
main.c: In function 'main': main.c:1:5: error: type of 'x' defaults to 'int' [-Wimplicit-int] 1 | int main(x){ | ^~~~ main.c:2:8: error: 'x' redeclared as different kind of symbol 2 | int x;scanf("%d",&x); | ^ main.c:1:5: note: previous definition of 'x' with type 'int' 1 | int mai...
s873319776
p03813
C++
#include<iostream. using namespace std; int main(){ int n; cin >> n; if (n < 1200) cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
a.cc:1:19: error: missing terminating > character 1 | #include<iostream. | ^ a.cc:1:9: fatal error: iostream.: No such file or directory 1 | #include<iostream. | ^ compilation terminated.
s646942609
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(void) { int x; cin>>x; if(x < 1200) cout<<"ABC"<<endl else cout<<"ARC"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:39: error: expected ';' before 'else' 8 | if(x < 1200) cout<<"ABC"<<endl | ^ | ; 9 | else cout<<"ARC"<<endl; | ~~~~
s497284353
p03813
C++
using namespace std; int main() { int a; cin >> a; if(a <= 1200) cout << "ABC"; else cout << "ARC"; return 0; }
a.cc: In function 'int main()': a.cc:7:1: error: 'cin' was not declared in this scope 7 | 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 | a.cc:9:2: error: 'cout' was not declared in this...
s609084029
p03813
C
#include<stdio.h> int main(void){ int n; scanf("%d",%n); if(n<1200){ printf("ABC"); }else{ printf("ARC"); } return 0; }
main.c: In function 'main': main.c:4:14: error: expected expression before '%' token 4 | scanf("%d",%n); | ^
s060075886
p03813
C
#include<stdio.h> int main(void){ int n scanf("%d",%n); if(n<1200){ printf("ABC"); }else{ printf("ARC"); } return 0; }
main.c: In function 'main': main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf' 4 | scanf("%d",%n); | ^~~~~ main.c:4:14: error: expected expression before '%' token 4 | scanf("%d",%n); | ^ main.c:5:6: error: 'n' undeclared (first use in this function...
s367888988
p03813
C++
#include<iostream> using namespace std; int main(){ int n;cin<<n; cout<<(n<1200?"ABC\n":"ARC\n"); return 0; }
a.cc: In function 'int main()': a.cc:4:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 4 | int n;cin<<n; | ~~~^~~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:4:12: ...
s949586010
p03813
Java
public class Sample{ String s; public Sample(String str){ s = str; } public int searchA(){ return s.indexOf("A"); } public int searchZ(){ return s.lastIndexOf("Z") + 1; } public static void main(String[] args){ Sample sample = new Sample(args[0]); int start = sample.searchA(); int end = sample.se...
Main.java:2: error: class Sample is public, should be declared in a file named Sample.java public class Sample{ ^ 1 error
s684703000
p03813
Java
import String; class Sample{ String s; String ss; Sample(String str){ s = str; } int searchA(){ return s.indexOf("A"); } int searchZ(){ return s.lastIndexOf("Z") + 1; } public static void main(String[] args){ Sample sample = new Sample(args[0]); int start = sample.searchA(); int end = sample.sear...
Main.java:1: error: '.' expected import String; ^ 1 error
s122097717
p03813
C
#include <stdio.h> int main(void){ int a; scanf("%d",&a); if((a<1200){ printf("ABC"); }else{ printf("ARC"); } return 0; }
main.c: In function 'main': main.c:5:20: error: expected ')' before '{' token 5 | if((a<1200){ | ~ ^ | ) main.c:11:1: error: expected expression before '}' token 11 | } | ^
s270621378
p03813
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vi = vector<int>; using vll = vector<ll>; using P = pair<int, int> const int INF = 1e9; const ll INFLL = 1e18; const int MOD = 1e9 + 7; const int NIL = -1; #define rep(i,n) for(int i=0; i<(n); ++i) #define all(n) begin(...
a.cc:8:11: error: two or more data types in declaration of 'type name' 8 | using P = pair<int, int> | ^~~~~~~~~~~~~~
s770167136
p03813
C++
//#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; const int INF= 1e9+5; typedef long long ll; int main(){ int x; cin>>X; if(x<1200)cout<<"ABC"<<endl; else cout<<"ARC"<<endl; }
a.cc: In function 'int main()': a.cc:10:8: error: 'X' was not declared in this scope 10 | cin>>X; | ^
s389302201
p03813
C++
#include<iostream> using namesapce std; int main() { int a; cin>>a; if(a<1200) cout<<"ABC"<<endl; else cout<<"ARC"<<endl; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: 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: /...
s841973497
p03813
C++
#include<iostream> #include<cstdio> #include<algorithm> #include<string> #include<cmath> #include<cstdlib> #include<cstring> #include<stdio.h> using namespace std; int n; int main() { scanf("%d",&n); n>1200:printf("ARC\n"):printf("ABC\n"); }
a.cc: In function 'int main()': a.cc:14:15: error: expected ';' before ':' token 14 | n>1200:printf("ARC\n"):printf("ABC\n"); | ^ | ;
s731285863
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n>1200){ cout<<"ABC"; } else{ cout<<"ARC" } }
a.cc: In function 'int main()': a.cc:11:20: error: expected ';' before '}' token 11 | cout<<"ARC" | ^ | ; 12 | } | ~
s208451067
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: In function 'int main()': a.cc:6:10: error: 'X' was not declared in this scope 6 | cin>>X; | ^
s455027305
p03813
C++
#include<bits/stdc++.h> template<typename T>inline auto range(T i,T j){ std::vector<T>ee; if(j>=i)for(T o=i;o<=j;++o)ee.push_back(o); else for(T o=i;o>=j;--o)ee.push_back(o); return ee; } struct __EMPty__{}; template <typename T> struct Greater:std::greater<T>{}; template <typename T> struct Less:std::...
a.cc:21:15: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 21 | #define begin main(){ | ^~~~ a.cc:102:8: note: in expansion of macro 'begin' 102 | Let us begin; | ^~~~~ a.cc: In function 'int main()': a.cc:112:11: error: expected '}' at end of input 1...
s219982854
p03813
C++
#include<cstdio> using namespace std; int main() { int a; scanf("%d",&a); if(a<1200)cout<<"ABC"; else cout<<"ARC"; return 0; }
a.cc: In function 'int main()': a.cc:7:14: error: 'cout' was not declared in this scope 7 | if(a<1200)cout<<"ABC"; | ^~~~ a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include<cstdio> +++ |+#include <iostream>...
s098529651
p03813
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; i++) using namespace std; int main() { int x; cin >> x; if(x < 1200) cout << "ABC" << endl; else cout << ans << endl; }
a.cc: In function 'int main()': a.cc:9:18: error: 'ans' was not declared in this scope; did you mean 'abs'? 9 | else cout << ans << endl; | ^~~ | abs
s162222292
p03813
C++
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if (X<1200){ cout<<"ABC"<<endl; return 0; } cout<<"ARC"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:7: error: 'X' was not declared in this scope 7 | if (X<1200){ | ^
s725348454
p03813
C++
#include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <utility> #include <cmath> #include <vector> #include <queue> #include <set> #include <map> #include <functional> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; typedef pair<ll, ll> P...
a.cc: In function 'int main()': a.cc:37:5: error: expected ';' before '}' token 37 | } | ^
s871100588
p03813
C++
#include<bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if(x >=1200){ puts("ARC"); }else{ puts("ABC") } }
a.cc: In function 'int main()': a.cc:11:16: error: expected ';' before '}' token 11 | puts("ABC") | ^ | ; 12 | } | ~
s388003575
p03813
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> int x; if (x < 1200) cout << "ABC" < <endl; else cout << "ARC" << endl; }
a.cc: In function 'int main()': a.cc:5:10: error: expected primary-expression before 'int' 5 | cin >> int x; | ^~~ a.cc:6:7: error: 'x' was not declared in this scope 6 | if (x < 1200) cout << "ABC" < <endl; | ^ a.cc:6:33: error: expected primary-expression before '<' token 6 ...