记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:10: error: stray '\357' in program
     while(a)
          ^
/in/foo.c:7:11: error: stray '\274' in program
     while(a)
           ^
/in/foo.c:7:12: error: stray '\210' in program
     while(a)
            ^
/in/foo.c:7:13: error: expected '(' before 'a'
     while(a)
             ^
/in/foo.c:7:13: warning: statement with no effect [-Wunused-value]
/in/foo.c:7:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(a)
     ^~~~~
/in/foo.c:7:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(a)
              ^
/in/foo.c:7:14: error: expected statement before ')' token
/in/foo.c:8:7: error: 'i' undeclared (first use in this function)
  {for(i=2,i<a);
       ^
/in/foo.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  {for(i=2,i<a);
          ^
/in/foo.c:8:14: error: expected ';' before ')' token
  {for(i=2,i<a);
              ^
/in/foo.c:8:14: error: expected expression before ')' token
/in/foo.c:8:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  {for(i=2,i<a);
   ^~~
/in/foo.c:9:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   if(a/i==0) break;
   ^~
/in/foo.c:9:14: error: break statement not within loop or switch
   if(a/i==0) break;
              ^~~~~
/in/foo.c:13:5: error: 'else' without a previous 'if'
     else break;
     ^~~~
/in/foo.c:13:10: error: break statement not within loop or switch
     else break;
          ^~~~~
/in/foo.c:15:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(!a);
  ^~
/in/foo.c:16:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     printf("yes");
     ^~~~~~
/in/foo.c:17:2: error: 'else' without a previous 'if'
  else
  ^~~~
/in/foo.c:20:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A5-1 超级素数判断
语言
C
递交时间
2024-08-21 09:53:19
评测时间
2024-08-21 09:53:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes