记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-02-28 20:08:59
评测时间
2022-02-28 20:08:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes