记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:12: error: 'i' undeclared (first use in this function)
    7 |         if(i=2;i<=sqrt(n);i++){
      |            ^
/in/foo.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:15: error: expected ')' before ';' token
    7 |         if(i=2;i<=sqrt(n);i++){
      |           ~   ^
      |               )
/in/foo.c:10:25: error: break statement not within loop or switch
   10 |                         break;
      |                         ^~~~~
/in/foo.c:14:17: warning: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   14 |                 print("is a prime",n);
      |                 ^~~~~
      |                 lrint

信息

递交者
类型
递交
比赛
2025-C-3
语言
C
递交时间
2025-12-29 10:19:39
评测时间
2025-12-29 10:19:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes