/in/foo.c:3:1: error: expected identifier or '(' before 'for'
for(i=1;i<=10;i++)
^~~
/in/foo.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
for(i=1;i<=10;i++)
^~
/in/foo.c:3:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for(i=1;i<=10;i++)
^~
/in/foo.c:8:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
cin>>j;
^~
/in/foo.c:9:1: warning: data definition has no type or storage class
n=j+30;
^
/in/foo.c:9:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:9:3: error: initializer element is not constant
n=j+30;
^
/in/foo.c:11:1: error: expected identifier or '(' before 'for'
for(i=1;i<=10;i++)
^~~
/in/foo.c:11:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
for(i=1;i<=10;i++)
^~
/in/foo.c:11:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for(i=1;i<=10;i++)
^~
/in/foo.c:14:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<<' token
cout<<count<<endl;
^~
/in/foo.c:15:1: error: expected identifier or '(' before 'return'
return 0;
^~~~~~