/in/foo.c: In function 's':
/in/foo.c:4:6: warning: unused variable 'i' [-Wunused-variable]
int i,x=0;
^
/in/foo.c: In function 'main':
/in/foo.c:15:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d",n);
^
/in/foo.c: In function 's':
/in/foo.c:11:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.c: In function 'main':
/in/foo.c:15:2: warning: 'n' is used uninitialized in this function [-Wuninitialized]
scanf("%d",n);
^~~~~~~~~~~~~