prog.c: In function ‘main’:
prog.c:11:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
int l:
^
prog.c:11:7: error: expected expression before ‘:’ token
prog.c:23:14: error: ‘l’ undeclared (first use in this function)
printf("%d",l);
^
prog.c:23:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:8: warning: variable ‘n2’ set but not used [-Wunused-but-set-variable]
int n,n2;
^~