记录详情

Compile Error

/in/foo.c: In function 'sushu':
/in/foo.c:4:2: error: expected declaration specifiers before 'for'
  for(int i=2;i<=sqrt(a);i++)
  ^~~
/in/foo.c:4:14: error: expected declaration specifiers before 'i'
  for(int i=2;i<=sqrt(a);i++)
              ^
/in/foo.c:4:25: error: expected declaration specifiers before 'i'
  for(int i=2;i<=sqrt(a);i++)
                         ^
/in/foo.c:13:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
/in/foo.c:22:1: error: expected '{' at end of input
 }
 ^
/in/foo.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
语言
C
递交时间
2023-10-13 19:54:14
评测时间
2023-10-13 19:54:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes