foo.c: In function 'main':
foo.c:8:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(l%10==2)n+=1;c=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;c=l/10;
                   ^
foo.c:9:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:9:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:10:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:11:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(c%10==2)n+=1;c=c/10;
   ^~
foo.c:11:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(c%10==2)n+=1;c=c/10;
                   ^
foo.c:4:16: warning: unused variable 'i' [-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)提供评测服务