submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s132633701
p00000
C
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <cmath> using namespace std; const int MaxN = 10005; int n, m; const double eps = 1e-7; int dcmp(double x) { return x < -eps ? -1 : x > eps; } struct Point { double x, y; Point(){} Point(double x, double y) : x(x), y(y) {} d...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s739056189
p00000
C
#include<stdio.h> int main(){ int i,j; for(i=1;j<10;j++){ printf("%dx%d=%d\n",i,j); } } return 0; }
main.c:9:5: error: expected identifier or '(' before 'return' 9 | return 0; | ^~~~~~ main.c:10:1: error: expected identifier or '(' before '}' token 10 | } | ^
s682516970
p00000
C
#include<stdio.h> int main(){ int i,j; for(i=1;j<10;j++){ printf("%dx%d=%d\n",i,j); } } return 0; }
main.c:9:5: error: expected identifier or '(' before 'return' 9 | return 0; | ^~~~~~ main.c:10:1: error: expected identifier or '(' before '}' token 10 | } | ^
s018912694
p00000
C
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<iostream> #include<vector> #include<algorithm> #include<queue> #define fr(i,t,n) for(int i = t ; i <= n ; i++) #define ft(i,t,n) for(int i = t ; i >= n ; i--) #define sc scanf #define pr printf #define re return #define ct continue #defin...
main.c:5:9: fatal error: iostream: No such file or directory 5 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s147301978
p00000
C
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; int map[10][10]; int que[100],num; int main() { int i,j,n,sum,maxx,step,astep,asum; while(scanf("%d",&n)) { if(n==0) break; for(i=0;i<n;i++) { for(j=0;j<n;j++) { scanf...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s581518632
p00000
C
//#include<iostream> #include<stdio.> //using namespace std; int main() { int i,j; for(i=1;i<10;i++) { for(j=1;j<10;j++) printf("%dx%d=%d\n",i,j,i*j); } return 0; }
main.c:2:9: fatal error: stdio.: No such file or directory 2 | #include<stdio.> | ^~~~~~~~ compilation terminated.
s650269048
p00000
C
#include<stdio.h> int main(){ int i, j; for(i =; i < 10; j++){ printf("%2dl",i*j); } return 0; }
main.c: In function 'main': main.c:5:12: error: expected expression before ';' token 5 | for(i =; i < 10; j++){ | ^
s627257418
p00000
C
#include<stdio.h> int main(void) { int i, j; for(j =1; j< 10 j++){ printf("%2d",i*j); } return 0; }
main.c: In function 'main': main.c:5:20: error: expected ';' before 'j' 5 | for(j =1; j< 10 j++){ | ^~ | ;
s210235106
p00000
C
#include<stdio.h> int main(void) { int i, j; for(j =1; j< 10 j++){ printf("%2dl",i*j); } return 0; }
main.c: In function 'main': main.c:5:20: error: expected ';' before 'j' 5 | for(j =1; j< 10 j++){ | ^~ | ;
s549958083
p00000
C
#include<stdio.h> int main(void) { int i, j; for(j =1; j< 10 j++){ printf("%2dl",i*j); } printf("\n"); } return 0; }
main.c: In function 'main': main.c:5:20: error: expected ';' before 'j' 5 | for(j =1; j< 10 j++){ | ^~ | ; main.c: At top level: main.c:10:5: error: expected identifier or '(' before 'return' 10 | return 0; | ^~~~~~ main.c:11:1: error: expected ...
s151858607
p00000
C
#include "StdAfx.h" #include<iostream> using namespace std; int main() { for(int m=1;m<=9;m++) { cout<<m<<"x"<<m<<"="<<m*m<<endl; } system("pause"); return 0; }
main.c:1:10: fatal error: StdAfx.h: No such file or directory 1 | #include "StdAfx.h" | ^~~~~~~~~~ compilation terminated.
s567256315
p00000
C
include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++) for(i=1;i<=9;i++) printf("%dd=%d\n",i,j,i*j); return 0;}
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s031856970
p00000
C
#include"stdio.h" int main(){ for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dd=%d\n",i,j,i*j); return 0;}
main.c: In function 'main': main.c:3:5: error: 'i' undeclared (first use in this function) 3 | for(i=1;i<=9;i++) | ^ main.c:3:5: note: each undeclared identifier is reported only once for each function it appears in main.c:4:5: error: 'j' undeclared (first use in this function) 4 | for(j=1;j<=9;j++) ...
s965485354
p00000
C
include"stdio.h" int main(){ int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dd=%d\n",i,j,i*j); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant 1 | include"stdio.h" | ^~~~~~~~~
s074794200
p00000
C
include"stdio.h" int main(){ for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dd=%d\n"i,j,i*j); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant 1 | include"stdio.h" | ^~~~~~~~~
s822029143
p00000
C
i=9,t;main(){i<90&&main(printf("%dx%d=%d\n",i++/9,t,i/9*t))t=i%9+1;}
main.c:1:1: warning: data definition has no type or storage class 1 | i=9,t;main(){i<90&&main(printf("%dx%d=%d\n",i++/9,t,i/9*t))t=i%9+1;} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:5: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int] 1...
s503738297
p00000
C
#include<stdio.h> #include<conio.h> void main() {int i,j; {for(i=1;i<=9;i++) {for(j=1;j<=9;j++) {printf("%d * %d =%d ",i,j,i*j); printf("\n"); } } getch(); }}
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s268296861
p00000
C
#include<string.h> #include<stdio.h> char str[1200]; bool check(char *str) { int len = strlen(str); if (len < 4) return true; if (strcmp(str + len - 4, "desu") == 0) return false; return true; } int main() { int t, cas = 1; scanf(" %d", &t); while (t--) { scanf(" %s", str); int len = strlen(str); if (c...
main.c:4:1: error: unknown type name 'bool' 4 | bool check(char *str) { | ^~~~ main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 2 | #include<stdio.h> +++ |+#include <stdbool.h> 3 | char str[1200]; main.c: In function 'check': main...
s832568237
p00000
C
1,1: 0 2,1: 01 3,2: 001 4,2: 0011 5,3: 00010 6,3: 000101 7,3: 0001011 8,3: 00010111 9,4: 000010110 10,4: 0000101100 11,4: 00001011000 12,4: 000010110000 13,4: 0000101100101 14,4: 00001011001011 15,4: 000010110010110 16,4: 0000101100101100 17,4: 00001011001011000 18,4: 000010110010110000 19,4: 0000101100101100101 20,4: ...
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 1,1: | ^
s102250138
p00000
C
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int pow[15],num[15]; int f[11][11][5100]; int g[11][11][5100]; int pre(int l,int k,int sum) { if(l==-1)return k==0; if(f[l][k][sum]!=-1)return f[l][k][sum]; int u=9,res=0; for(int i=0;i<=u;i++) if(sum-pow[l]*i>=0) res+=p...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s454670379
p00000
C
/* * Author: chlxyd * Created Time: 2013-9-14 12:44:02 * File Name: 1007.cpp */ #include<iostream> #include<sstream> #include<fstream> #include<vector> #include<list> #include<deque> #include<queue> #include<stack> #include<map> #include<set> #include<bitset> #include<algorithm> #include<cstdio> #include<cstdlib>...
main.c:6:9: fatal error: iostream: No such file or directory 6 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s377715067
p00000
C
#include<iostream> #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; char s[1010]; char lib[12][1010]; int len[12]; bool pa(int i,int j) { if(i<0) return 0; while(i<j) { if(s[i]!=s[j]) return 0; ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s660695732
p00000
C
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> using namespace std; const int maxn=100010; int num_cnt[40]; long long num[maxn]; int n, m; long long sum; int l[5*maxn], r[5*maxn], nn; long long cnt; long long CC (long long x) { if(x<=0) return 0; return x*(x-1)/2+x; } void addc...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s595092056
p00000
C
#include<iostream> #include<stdio.h> #include<string.h> #include<assert.h> using namespace std; const int N = 20; int M; char s1[100],s2[100]; int opt[10][N],a,b,num[20]; inline int dfs(int h,int g,bool bound) { // cout<<h<<" "<<g<<" "<<bound<<endl; if(g<=1) return 0; if(g>=19){ return num[h]+1; // ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s775974568
p00000
C
/* * Author: chlxyd * Created Time: 2013-9-14 12:44:02 * File Name: 1007.cpp */ #include<iostream> #include<sstream> #include<fstream> #include<vector> #include<list> #include<deque> #include<queue> #include<stack> #include<map> #include<set> #include<bitset> #include<algorithm> #include<cstdio> #include<cstdlib>...
main.c:6:9: fatal error: iostream: No such file or directory 6 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s719620733
p00000
C
#pragma comment(linker,"/STACK:102400000,102400000") #include<stdio.h> #include<algorithm> #include<stack> #include<queue> #include<math.h> #include<string.h> using namespace std; struct Edge { int to, v; Edge() { } Edge(int to, int v) : to(to), v(v) { } }; #define M 2000100 #define N 2001 struct Tarjan { vect...
main.c:3:9: fatal error: algorithm: No such file or directory 3 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s421022862
p00000
C
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> using namespace std; struct point { double x, y, z; point(){} point(double x, double y, double z):x(x),y(y),z(z){} point operator + (const point &b) const { return point(x + b.x, y + b.y, z + b.z); } point operator - (const point &b) con...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s573524458
p00000
C
#include<iostream> #include<sstream> #include<fstream> #include<vector> #include<list> #include<deque> #include<queue> #include<stack> #include<map> #include<set> #include<bitset> #include<algorithm> #include<cstdio> #include<cstdlib> #include<cstring> #include<cctype> #include<cmath> #include<ctime> using namespace s...
main.c:2:9: fatal error: iostream: No such file or directory 2 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s185028381
p00000
C
#include<iostream> #include<cstring> #include<cstdio> using namespace std; const int N=1010; int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0},n; bool flag1[N][N],flag2[N][N]; bool judge(int x,int y,int t) { int x1=x+dx[t],y1=y+dy[t]; if(x1>=0&&x1<n&&y1>=0&&y1<n) return 1; return 0; } int main() { while(sca...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s702318408
p00000
C
#include<cstdio> #include<algorithm> const int N = (int) (1e3); int n, ax, ay, ad, bx, by, bd; bool flag[2][N][N]; bool in(int x, int y) { return 0 <= x && x < n && 0 <= y && y < n; } const int dx[4] = { 0, 1, 0, -1 }; const int dy[4] = { 1, 0, -1, 0 }; bool go(int &x, int &y, int &d, int f) { if (in(x + dx[d], y...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s759585545
p00000
C
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std ; const int MAXN = 5010 ; const int MAXM = 20010 ; int id[MAXN] , end[MAXM] , cnt , g[MAXN] , next[MAXM] ; bool deleted[MAXM] ; int visit[MAXN]; int n , m , low[MAXN] , dfn[MAXN] , root; int Belong[MAXN] ; int step ; in...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s644831761
p00000
C
#include<iostream> using namespace std; int dx[] = {0,1,0,-1}; int dy[] = {1,0,-1,0}; void t_right(int &di){ di++; di%=4; } void t_left(int &di){ di--; di=(di+4)%4; } const int N = 1001; bool acc0[N][N], acc1[N][N]; int n; #define x first #define y second typedef pair<int,int> pii; #define mp make_pair bool sc;...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s935784674
p00000
C
const int MAXN=10000000; int cprime[MAXN],used=0; int p[MAXN]; void prime_(){ memset(p,0,sizeof p); for(int i=2;i<MAXN;i++){ if(!p[i]) { cprime[used]=i,used++; p[i] = i; } for(int j=0;j<used;j++){ if(cprime[j]>= MAXN/i) break; p[i*cprime[j]]=cprime[j]; if(i%cprim...
main.c:2:5: error: variably modified 'cprime' at file scope 2 | int cprime[MAXN],used=0; | ^~~~~~ main.c:3:5: error: variably modified 'p' at file scope 3 | int p[MAXN]; | ^ main.c: In function 'prime_': main.c:5:4: error: implicit declaration of function 'memset' [-Wimplicit-function-declar...
s773082500
p00000
C
#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #define MAXN 1010 #define MAXM 1000010 using namespace std; struct node { int x, y; double val; }; node g[MAXM]; node p[MAXN]; int first[MAXN], next[MAXN << 2], v[MAXN << 2]; double cost[MAXN << 2]; int e; double dp[MAXN]; bool vis[MAXN]; inline v...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s969992906
p00000
C
#include<cstdio> #include<algorithm> int testCount; struct P { int x, y; } a[3], b[3], c[4]; struct T { int e[3]; } aa, bb; #define SQR(X) ((X)*(X)) int D(P a, P b) { return SQR(a.x-b.x) + SQR(a.y-b.y); } void change(P *a, T &aa) { for (int i = 0; i < 3; ++i) { aa.e[i] = D(a[i], a[(i + 1) % 3]); } std::sort(...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s619031681
p00000
C
#include<iostream> #include<cstdio> #include<map> #include<set> #include<cstring> #include<string> using namespace std; //extended kmp //nxt[] & ext[] should be clarify out of the function void ExtendKmp(char s[],int ls,char t[],int lt) { int i,j,k; int Len,L; j=0; while(t[j+1]==t[j]&&j+1<lt) j++; nxt[1]=j,...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s576177304
p00000
C
#include <iostream> #include <cstdio> #include <cstring> #include <queue> #include <algorithm> using namespace std; const int sigma=26; const int maxn=200010; int gcd(int a,int b){return b==0?a:gcd(b,a%b);} int ch[maxn][sigma]; int val[maxn]; int sz,n,m,k; void init(){sz=1;memset(ch[0],0,sizeof(ch[0]));} void insert(in...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s321052310
p00000
C
//const int N=205,M=205*205+5; //int n,gra[N][N],eid; //int dfn[N],low[N],sta[N]; //int now,id,top,gid[N],ins[N]; //int head[N],ed[M],nxt[M]; // //void addedge(int s,int e){ // ed[eid]=e;nxt[eid]=head[s];head[s]=eid++; //} // //void tarjan(int s){ // dfn[s]=low[s]=++id; // ins[s]=1;sta[top++]=s; // for(int ...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s842915273
p00000
C
#include <iostream> #include <cstring> #include <cstdio> using namespace std; int v[20], f[20][20], N; int dp[1<<13]; struct edge { int u, v; }e[20]; void init() { N = 0; for( int i = 1; i <= 16; ++i ) { int u = i, v = i + 1; if( u % 4 && v <= 16 && !f[u][v] ) { e[N].u = u; e[N].v = v; N++; f[u][v] = f[...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s005457050
p00000
C
#include <cstdio> #include <cstdlib> #include <iostream> #include <algorithm> #include <vector> using namespace std; const int maxn=110; int F[maxn][maxn], G[maxn][maxn]; int p[maxn]; int n; bool vis[maxn], ans; void dfs (int x, int to) { if(p[x]!=-1 && p[x]!=to){ ans=false; return ; } ...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s262242339
p00000
C
#include<iostream> #include<stdio.h> #include<string.h> using namespace std; const int mod=(int)1e9+7; const int N = 101; const int M = 41; int n,m,opt[N][N][M][M],next1[N],next2[N],l1,l2; char s1[N],s2[N]; struct state { int a,b,c,d; state(){} state(int aa,int bb,int cc,int dd):a(aa),b(bb),c(cc),d(dd){} ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s734347124
p00000
C
2????????1??3??7??9??3??9??1??7??1??3??7??3??9??1??7??1??3??9??3??9??7
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 2????????1??3??7??9??3??9??1??7??1??3??7??3??9??1??7??1??3??9??3??9??7 | ^
s477502837
p00000
C
#include<iostream> #include<cstring> #include<cmath> using namespace std; int main() { string t; string s; while(cin>>t) { cin>>s; if(s=="RGB") { int r,g,b; cin>>r>>g>>b; //get h double h=0; int maxx=max(max(r,g),b); ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s266156536
p00000
C
#include <cstdio> #include <cstring> #include <iostream> #include <cmath> #include <algorithm> #include <queue> #include <vector> #include <utility> using namespace std; const int maxn = 105500; const int maxe = 1e6+100; const int INF = 0x3f3f3f3f; int dp1[maxn]; int dp2[maxn]; int prime[maxn]; int cnt = 1; bool i...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s220060276
p00000
C
#include<iostream> #include<string.h> #include<stdio.h> using namespace std; int next[100]; void getnext(char *t) { next[0]=-1; int j=0,k=-1; while(j<strlen(t)) { if((k==-1)||(t[j]==t[k])) { j++;k++; next[j]=k; } else k=next[k]; } } int kmp(char *t,char *p) { int i=0,j=0,l1=strlen(t),l2=strle...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s299390136
p00000
C
#include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <algorithm> using namespace std; const double eps = 1e-9; const double D = 42.5; const double R1 = 10.0; const double R2 = 6.0; const double pi = acos(-1.0); inline int sig(double x) { return (x>eps)-(x<-eps) ;} double x, t; void deal...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s329552107
p00000
C
#include<iostream> #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; const int N = 550000; char a[N],s1[N],s2[N],nx[N]; int ans[N],l,next[N]; inline void get_next(char *s) { next[0]=-1; int i=0,j=-1; while(s[i]) { if(j==-1||s[i]==s[j]) next[++i]=++j; else j=ne...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s766593772
p00000
C
#include<iostream> #include<stdio.h> #include<algorithm> #include<bitset> using namespace std; const int N = 500; int dir[4][2]={-1,0,0,1,1,0,0,-1}; int vis[N][N],d[N][N],n,m; char s[N][N]; bitset<N> bt; bool ys; bool judge(int x,int y) { return x>=0&&y>=0&&x<n&&y<m; } void dfs(int x,int y,int &l) { // cout<<x<<...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s981239533
p00000
C
#include<iostream> #include<cstdio> using namespace std; //31,37,41,43,47 const int N = 1000; const int mod = 5; int f[N][N]; int bell[N]; int main() { freopen("out.txt","w",stdout); f[0][0]=1; for(int i=1;i<N;i++){ for(int k=1;k<=i;k++){ f[i][k] =( k * f[i-1][k] + f[i-1][k-1])%mod;; } } for(int i=0;i<10;...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s609776556
p00000
C
BELL[1] = 1 BELL[2] = 2 BELL[3] = 5 BELL[4] = 15 BELL[5] = 52 BELL[6] = 203 BELL[7] = 877 BELL[8] = 4140 BELL[9] = 21147 BELL[10] = 115975 BELL[11] = 678570 BELL[12] = 4213597 BELL[13] = 27644437 BELL[14] = 816188 BELL[15] = 52376607 BELL[16] = 25569777 BELL[17] = 83664947 BELL[18] = 58521367 BELL[19] = 41238267 BELL[2...
main.c:1:1: warning: data definition has no type or storage class 1 | BELL[1] = 1 | ^~~~ main.c:1:1: error: type defaults to 'int' in declaration of 'BELL' [-Wimplicit-int] main.c:1:11: error: invalid initializer 1 | BELL[1] = 1 | ^ main.c:2:1: error: expected ',' or ';' before 'BELL' ...
s256398956
p00000
C
#include <cstdio> #include <cstring> #include <iostream> #include <cmath> #include <algorithm> #include <queue> #include <vector> #include <utility> using namespace std; const int maxn = 1055000; char a[maxn]; int len; bool Judge(int n) { for(int i=1;i<=n;i++){ if(a[i] != a[len-n+i]) return false; } ...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s310925281
p00000
C
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <iostream> using namespace std; const int maxn=20010; int A[maxn], B[maxn], C[maxn]; int ans; int gcd (int a, int b) { return b==0?a:gcd(b, a%b); } void GetAns (int a, int b, int c) { for(int i=0; i<31; i++){ int x...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s005340444
p00000
C
2345 3 7 8 9 100 1 0 123 4 1 2 3 4 934 4 1 2 3 4 567 4 5 6 7 1 789 4 1 2 3 9 890 3 1 2 0 890 4 1 2 3 9 890 4 1 2 3 8 110 9 1 2 3 4 5 6 7 8 9 125 1 0 125 1 5 125 2 0 5 122 5 0 2 4 6 8 124 5 0 2 4 6 8 128 5 0 2 4 6 8 124 4 2 4 6 8 102 4 2 4 6 8 201 4 2 4 6 8 Case 1: 2345 Case 2: -1 Case 3: 5658 Case 4: 57908 Case 5: 3...
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 2345 3 | ^~~~
s078576065
p00000
C
#include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int maxn=210000; struct node { int u,next,d; }a[maxn]; int head[maxn],b[maxn],f[maxn],rec1[maxn],rec2[maxn],max1[maxn],max2[maxn]; bool v[maxn]; int n; void dp(int x) { if(v[x])return; v[x]=true; bool fl...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s713958219
p00000
C
#include <iostream> #include <cstdio> #include <cstring> using namespace std; int dx[]={1,-1,0,0},dy[]={0,0,1,-1}; int hx[]={2,2,-2,-2,1,-1,1,-1},hy[]={1,-1,1,-1,2,2,-2,-2}; int n,x,y; char type[10][10]; int px[10],py[10]; int main() { freopen("data","r",stdin); while(~scanf("%d%d%d",&n,&x,&y)) { if...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s095884506
p00000
C
#include <cstdio> #include <cstring> #include <cstdlib> #include <iostream> #include <algorithm> using namespace std; const long long zero=(long long)0; const long long one=(long long)1; const long long maxn=(long long)1<<32; long long n, m, x, y, X, Y; long long getlastz (long long x) { long long s=0, i=1; w...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s742711714
p00000
C
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> using namespace std; const double eps=1e-10; const int maxn=30010; int dcmp(double x) { if(fabs(x)<eps) return 0; else return x<0?-1:1; } struct point { double x,y; point(double x=0,double y=0):x(x),y(y){} }; double a,b; int main(...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s672734742
p00000
C
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> using namespace std; typedef double matrix[70][300]; const double eps=1e-6; int l,w,h; int m,n; int val[100]; bool gauss(matrix a) { int i=0,j=0,k,r,u; while(i<m && j<n) { r=i; for(k=i+1;k<m;k++) if(fabs(a[...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s149792266
p00000
C
#include<stdio.h> int main(void) {
main.c: In function 'main': main.c:3:1: error: expected declaration or statement at end of input 3 | { | ^
s280545499
p00000
C
#include<stdio.h> int main(void) { int ma=1; while(ma<=10){ printf("%d*%d=%d\n",ma,ma,ma*ma); ma++; return(0); }
main.c: In function 'main': main.c:11:1: error: expected declaration or statement at end of input 11 | } | ^
s907796031
p00000
C
#include<stdio.h> int main(void){ int ma=1; while(ma<=10){ printf("%d*%d=%d\n"ma,ma,ma*ma); ma++; } return(0); }
main.c: In function 'main': main.c:6:20: error: expected ')' before 'ma' 6 | printf("%d*%d=%d\n"ma,ma,ma*ma); | ~ ^~ | )
s060937254
p00000
C
#include<stdio.h> int main() { int ma=1; while(ma<=10){ printf("%d×%d=%d\n",ma,ma,ma*ma); ma++; } return0; }
main.c: In function 'main': main.c:10:1: error: 'return0' undeclared (first use in this function) 10 | return0; | ^~~~~~~ main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
s951348202
p00000
C
null
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input 1 | null | ^~~~
s393468053
p00000
C
#include<cstdio> #include<cstring> #include<iostream> #include<cmath> #include<algorithm> using namespace std; char a[300], b[520000], c[520000]; int l1, l2; int judge(int ip) { if(ip - l1 + 1 < 0) return 0; for(int i=ip-l1+1; i<=ip; i++) { if(c[i] != a[i-ip+l1-1]) return 0; } return 1; } int main() { int i, ...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s204386400
p00000
C
#include<stdio.h> int main(){ int i,j,s for(i = 1,i <= 9,i++){ for(j = 1,j <= 9,j++){ s=i*j; printf("%dx%d=%d",i,j,s); } } return 0; }
main.c: In function 'main': main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for' 5 | for(i = 1,i <= 9,i++){ | ^~~
s611304822
p00000
C
#include<stdio.h> int main(void){ int i,j,s for(i = 1,i <= 9,i++){ for(j = 1,j <= 9,j++){ s=i*j; printf("%dx%d=%d",i,j,s); } } return 0; }
main.c: In function 'main': main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for' 5 | for(i = 1,i <= 9,i++){ | ^~~
s446149779
p00000
C
#include<stdio.h> int main(void){ int i,j,s for(i = 1,i <= 9,i++){ for(j = 1,j <= 9,j++){ s=i*j; printf("%dx%d=%d\n",i,j,s); } } return 0; }
main.c: In function 'main': main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for' 5 | for(i = 1,i <= 9,i++){ | ^~~
s856908701
p00000
C
http://blog.fens.me/nodejs-socketio-chat/ ........................................................................................................................
main.c:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token 1 | http://blog.fens.me/nodejs-socketio-chat/ | ^
s031495329
p00000
C
#include <iostream> using namespace std; int main(){ for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9 ; j++) cout<<i<<" * "<<j<<" = " <<i*j<<endl; } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s209462408
p00000
C
#include <iostream> using namespace std; int main() { while(!-1){ long long int a,b; cin >> a >> b; cout << (a+b) << endl; } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s520065752
p00000
C
#include <stdio.h> #include <string.h> #include <algorithm> #include <iostream> using namespace std; #define N 27 int T,n; char s[100]; int map[N][N],fg,f[N],mlen,st[100],stt[100],pre[100],pree[100],dep,edd,ed; int q[100],cp; void init() { for(int i=0;i<26;i++) for(int j=0;j<26;j++)map[i][j]=1; memset(f,0,s...
main.c:3:10: fatal error: algorithm: No such file or directory 3 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s433574508
p00000
C
#include <stdio.h> #include <string.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; #define N 27 int T,n; char s[100]; int map[N][N], fg; void init() { for(int i=0; i<26; i++) for(int j=0; j<26; j++)map[i][j]=1; } bool loop; bool vis[26]; int pre[26]; #define clr(a,b) ...
main.c:3:10: fatal error: algorithm: No such file or directory 3 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s973876470
p00000
C
#include <stdio.h> int main(void) { int i, j; for(i = 1; i <= 9; i++){ for(j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i*j); } } return(0);
main.c: In function 'main': main.c:13:3: error: expected declaration or statement at end of input 13 | return(0); | ^~~~~~
s589552071
p00000
C
#include <stdio.h> int main(void) { int i, j; for(i = 1; i <= 9; i++){ for(j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i*j); } } return 0;
main.c: In function 'main': main.c:13:3: error: expected declaration or statement at end of input 13 | return 0; | ^~~~~~
s496269418
p00000
C
0000: QQ
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 0000: QQ | ^~~~
s228489625
p00000
C
0000: QQ
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 0000: QQ | ^~~~
s089725287
p00000
C
#include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; }
main.c:1:19: warning: extra tokens at end of #include directive 1 | #include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; } | ^~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scr...
s652914235
p00000
C
#include <stdio.h> int main(void){
main.c: In function 'main': main.c:3:1: error: expected declaration or statement at end of input 3 | int main(void){ | ^~~
s690096895
p00000
C
#include<stdio.h> int main(){ for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d"+"x"+"%d"+"="+"%d\n",i,j,i*j); return 0; }
main.c: In function 'main': main.c:4:5: error: 'i' undeclared (first use in this function) 4 | for(i=1;i<=9;i++){ | ^ main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in main.c:5:5: error: 'j' undeclared (first use in this function) 5 | for(j=1;j<=9;j++){...
s988939499
p00000
C
#include<stdio.h> int main(){ for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d",i); printf("x"); printf("%d",j); printf("="); printf("%d\n",i*j); return 0; }
main.c: In function 'main': main.c:4:5: error: 'i' undeclared (first use in this function) 4 | for(i=1;i<=9;i++){ | ^ main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in main.c:5:5: error: 'j' undeclared (first use in this function) 5 | for(j=1;j<=9;j++){...
s239527558
p00000
C
#include<stdio.h> int main(){ int i,j; for(i = 1;i<=9;i++){ for(j = 1; j<=9;j++){ pritnf("%dx%d=%d",j,i,j*i); } } return 0; }
main.c: In function 'main': main.c:7:25: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration] 7 | pritnf("%dx%d=%d",j,i,j*i); | ^~~~~~ | printf
s432083608
p00000
C
#include<cstdio> #include<algorithm> const int Inf = (int) (2e8); int n, m, x[1 << 15], c[1 << 15], r[1 << 15], p[1 << 15]; int li[1 << 15], ri[1 << 15], pre[1 << 15], f[1 << 7][2], ans; struct tree_st { int e[1 << 16], c[1 << 16]; void build(int l, int r, int rt) { e[rt] = c[rt] = Inf; if (l != r) { int m ...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s852798156
p00000
C
#include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; }
main.c:1:19: warning: extra tokens at end of #include directive 1 | #include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; } | ^~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scr...
s153342981
p00000
C
#include int main(int argc, const char * argv[]) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
main.c:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include int main(int argc, const char * argv[]) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; } | ^~~
s304433668
p00000
C
#include<stdio.h> int main(){ int i = 9; int j=0; for(;i<=9;i++) { j=i*i; printf("%d*%d=%d"i,i,j); return 0; } }
main.c: In function 'main': main.c:9:22: error: expected ')' before 'i' 9 | printf("%d*%d=%d"i,i,j); | ~ ^ | )
s454025790
p00000
C
#include <cstdio> using namespace std; int main() { int i,j; for(i=1;i<10;i++) for(j=1;j<10;j++) printf("%dx%d=%d\n",i,j,i*j); getchar(); return 0; }
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s169663211
p00000
C
#include <stdio.h> #include <string.h> #define maxx(a,b) a>b?a:b const int N = 1000000010; int m[N]; int l[N]; int r[N]; int main() { int n; while(scanf("%d",&n)!=EOF,n) { int i,j; for(i=1;i<=n;i++) { scanf("%d",&m[i]); } memset(l,0,sizeof(l)); memset(r,0,sizeof(r)); for(i=1;i<=n;i++) { whil...
main.c:7:5: error: variably modified 'm' at file scope 7 | int m[N]; | ^ main.c:8:5: error: variably modified 'l' at file scope 8 | int l[N]; | ^ main.c:9:5: error: variably modified 'r' at file scope 9 | int r[N]; | ^
s755237674
p00000
C
#include<stdio.h> int main() {int i,j; for(i=1;i<=9;++i) { for(j=1;j<=9;++j) { printf("%d * %d = %d\n",i,j,i*j); } } return 0; }
main.c:1:19: warning: extra tokens at end of #include directive 1 | #include<stdio.h> int main() {int i,j; for(i=1;i<=9;++i) { for(j=1;j<=9;++j) { printf("%d * %d = %d\n",i,j,i*j); } } return 0; } | ^~~ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in funct...
s879713890
p00000
C
#include<stdio.h> int main(void){ int i, j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d %s %d %s %d",i,x,j,=,i*j); } } return 0; }
main.c: In function 'main': main.c:6:33: error: 'x' undeclared (first use in this function) 6 | printf("%d %s %d %s %d",i,x,j,=,i*j); | ^ main.c:6:33: note: each undeclared identifier is reported only once for each function it appears in main.c:6:37: error: expected expre...
s525548154
p00000
C
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1005; int dp[N][8]; int a[N][5]; int x; bool ok(int st, int x) { return !(st>>x&1); } int fix(int st, int x) { return st|(1<<x); } void dfs(int y, int pre, int now, int val) { if(y == 3) { ...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s254698225
p00000
C
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1005; int dp[N][8]; int a[N][5]; int x; bool ok(int st, int x) { return !(st>>x&1); } int fix(int st, int x) { return st|(1<<x); } void dfs(int y, int pre, int now, int val) { if(y == 3) { ...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s281262539
p00000
C
1 1 Case 1: a a 2 1 Case 1: bb bb 3 1 Case 1: bbbbab bbbbab
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 1 1 | ^
s480477568
p00000
C
#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <vector> #include <map> #include <string> using namespace std; const int N = 66; typedef unsigned long long ll; ll n, m, f[N], cnt[N][4]; void init() { ll p = 2; f[0] = 1;f[1] = 1; for(int i = 2; i < N; i++) {...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s761240471
p00000
C
49 46 45 28 27 26 25 48 47 44 29 32 33 24 5 6 43 30 31 34 23 4 7 42 41 40 35 22 3 8 13 14 39 36 21 2 9 12 15 38 37 20 1 10 11 16 17 18 19
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 49 46 45 28 27 26 25 | ^~
s271892451
p00000
C
#include <stdio.h> int main() { __int64 i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) printf("%I64d*%I64d=%I64d\n",i,j,i*j); } return 0; }
main.c: In function 'main': main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'? 4 | __int64 i,j; | ^~~~~~~ | __int64_t
s710677390
p00000
C
#include <cstdio> #include <cstring> #include <algorithm> #include <cmath> using namespace std; typedef long long ll; const double eps = 1e-8; struct Point { double x, y; Point operator-(const Point &t) const { return (Point) {x-t.x, y-t.y}; } }p[100005]; int n, m, k; int cross(Point o, Point a, Poi...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s376181342
p00000
C
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d"+"x"+"%d"+"="+"%d",i,j,i*j); } } return 0; }
main.c: In function 'main': main.c:6:14: error: invalid operands to binary + (have 'char *' and 'char *') 6 | printf("%d"+"x"+"%d"+"="+"%d",i,j,i*j); | ~~~~^ | | | | | char * | char *
s097857964
p00000
C
#include <iostream> #include<stdio.h> using namespace std; int main(){ while(1){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%d*%d=%d\n",i,j,i*j); } } } return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s017998896
p00000
C
include<stdio.h> int main() { int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dx%d=%d",i,j,i*j); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s712248894
p00000
C
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <string> #include <cmath> #include <vector> using namespace std; #define LL long long #define eps 1e-8 #define mod 1000000007 struct node{ int a ,d ,b ; }a[30]; int u[30] ; void init(){ int n = 30 ; for( int i ...
main.c:10:10: fatal error: iostream: No such file or directory 10 | #include <iostream> | ^~~~~~~~~~ compilation terminated.