foo.c: In function 'main':
foo.c:8:16: warning: statement with no effect [-Wunused-value]
for(x=n;x>10;x/10)
~^~~
foo.c:12:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x%i==0)
^~
foo.c:14:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
foo.c:19:16: warning: statement with no effect [-Wunused-value]
for(x=n;x>10;x/10)
~^~~
foo.c:23:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x%i!=0)
^~
foo.c:25:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务