foo.c: In function 'main':
foo.c:4:1: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d %d",&a,&b);
^
foo.c:4:1: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
foo.c:5:5: error: 'i' undeclared (first use in this function)
for(i=1;i>0;i++)
^
foo.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:1: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
system("pause");
^
foo.c:9:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^