foo.c: In function 'main':
foo.c:10:12: warning: self-comparison always evaluates to true [-Wtautological-compare]
10 | for(j=2;j<=j;j++)
| ^~
foo.c:12:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
12 | if(i%j==0);
| ^~
foo.c:13:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
13 | {
| ^
foo.c:17:15: error: stray '\357' in program
17 | if(i%j!=0)
| ^
foo.c:17:16: error: stray '\274' in program
17 | if(i%j!=0)
| ^
foo.c:17:17: error: stray '\211' in program
17 | if(i%j!=0)
| ^
foo.c:17:15: error: expected ')' before '{' token
17 | if(i%j!=0)
| ~ ^
| )
18 | {
| ~
foo.c:21:3: error: expected expression before '}' token
21 | }
| ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&y);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务