记录详情

Compile Error

/in/foo.c: In function 'Prime':
/in/foo.c:7:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    7 |         for (int i=3,i<=limit,i+=2){
      |                       ^~
/in/foo.c:12:9: error: expected expression before 'return'
   12 |         return 1;
      |         ^~~~~~
/in/foo.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
/in/foo.c:13:1: error: expected expression before '}' token
/in/foo.c:7:18: warning: unused variable 'i' [-Wunused-variable]
    7 |         for (int i=3,i<=limit,i+=2){
      |                  ^
/in/foo.c:6:13: warning: unused variable 'limit' [-Wunused-variable]
    6 |         int limit =(int)sqrt(n)+1;
      |             ^~~~~
/in/foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^

信息

递交者
类型
自测
语言
C
递交时间
2025-11-15 14:42:03
评测时间
2025-11-15 14:42:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes