/in/foo.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
cin>>n>>d;
^~
/in/foo.c:5:2: error: expected identifier or '(' before 'for'
for(int i=1;i<=n;i++)
^~~
/in/foo.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
for(int i=1;i<=n;i++)
^~
/in/foo.c:5:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for(int i=1;i<=n;i++)
^~
/in/foo.c:17:2: warning: data definition has no type or storage class
c[1]=1;
^
/in/foo.c:17:2: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
/in/foo.c:17:2: error: conflicting types for 'c'
/in/foo.c:2:13: note: previous declaration of 'c' was here
int b[2600],c[2600];
^
/in/foo.c:17:7: error: invalid initializer
c[1]=1;
^
/in/foo.c:18:2: error: expected identifier or '(' before 'for'
for(int i=2;i<=n;i++)
^~~
/in/foo.c:18:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
for(int i=2;i<=n;i++)
^~
/in/foo.c:18:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for(int i=2;i<=n;i++)
^~
/in/foo.c:34:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<<' token
cout<<c[n];
^~