prog.c: In function ‘go’:
prog.c:15:1: warning: ‘return’ with no value, in function returning non-void
return;
^~~~~~
prog.c:6:5: note: declared here
int go(int position,int n,int r){
^~
prog.c:23:1: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(check[i]=0){
^~
prog.c:8:5: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
int start=1;
^~~~~
prog.c: At top level:
prog.c:33:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main(){
^~~~
prog.c: In function ‘main’:
prog.c:35:1: error: expected ‘,’ or ‘;’ before ‘int’
int r=5;
^~~
prog.c:37:8: error: ‘r’ undeclared (first use in this function)
go(0,n,r);
^
prog.c:37:8: note: each undeclared identifier is reported only once for each function it appears in
prog.c:38:8: warning: ‘return’ with a value, in function returning void
return 0;
^
prog.c:33:6: note: declared here
void main(){
^~~~