/in/foo.cc:2:10: error: ISO C++ forbids declaration of 'voidmain' with no type [-fpermissive]
voidmain()
^
/in/foo.cc: In function 'int voidmain()':
/in/foo.cc:4:5: error: 'intm' was not declared in this scope
intm,n,i,j,b,p,bound;
^~~~
/in/foo.cc:4:10: error: 'n' was not declared in this scope
intm,n,i,j,b,p,bound;
^
/in/foo.cc:4:12: error: 'i' was not declared in this scope
intm,n,i,j,b,p,bound;
^
/in/foo.cc:4:14: error: 'j' was not declared in this scope
intm,n,i,j,b,p,bound;
^
/in/foo.cc:4:16: error: 'b' was not declared in this scope
intm,n,i,j,b,p,bound;
^
/in/foo.cc:4:18: error: 'p' was not declared in this scope
intm,n,i,j,b,p,bound;
^
/in/foo.cc:4:20: error: 'bound' was not declared in this scope
intm,n,i,j,b,p,bound;
^~~~~
/in/foo.cc:5:5: error: 'intgr' was not declared in this scope
intgr[14];
^~~~~
/in/foo.cc:9:23: error: 'm' was not declared in this scope
scanf("%d,%d",&n,&m);
^
/in/foo.cc:15:15: error: 'exit' was not declared in this scope
exit(0);
^
/in/foo.cc:27:9: error: 'gr' was not declared in this scope
gr[i]=p;
^~
/in/foo.cc:32:21: error: 'gr' was not declared in this scope
printf("%d",gr[i]);
^~
/in/foo.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^