记录详情

Compile Error

/in/foo.c: In function 'prime':
/in/foo.c:9:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(i>=n&&n!=1||n==2)
     ~~~~^~~~~~
/in/foo.c: In function 'cprime':
/in/foo.c:19:4: error: 'i' undeclared (first use in this function)
    i++;
    ^
/in/foo.c:19:4: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:20:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/in/foo.c:22:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    n=n/10;
    ^

信息

递交者
类型
递交
题目
A5-1 超级素数判断
比赛
中北 计算机2021级专业修读指导(3)
语言
C
递交时间
2021-12-16 21:40:45
评测时间
2021-12-16 21:40:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes