foo.c: In function 'main':
foo.c:8:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(l%10==2)n+=1;l=l/10;
^~
foo.c:8:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(l%10==2)n+=1;l=l/10;
^
foo.c:7:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
{for(i=0;i<=3;i++)
^~~
foo.c:8:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
if(l%10==2)n+=1;l=l/10;
^
foo.c:4:14: warning: unused variable 'c' [-Wunused-variable]
int l,p,n=0,c,i;
^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&l,&p);
^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务