/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d",a)
^
/in/foo.c:7:3: error: expected ';' before 'i'
i=2;
^
/in/foo.c:8:8: error: 'n' undeclared (first use in this function)
while(n>1)
^
/in/foo.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:9: error: lvalue required as left operand of assignment
if(a%i=0)
^
/in/foo.c:12:4: error: expected ';' before 'n'
n=n/i;
^