记录详情

Accepted

/in/foo.c: In function 'IsPrime':
/in/foo.c:17:7: warning: statement with no effect [-Wunused-value]
       for(i;i<=sqrt(x);i++)
       ^~~
/in/foo.c: In function 'PrimeCount':
/in/foo.c:31:2: warning: statement with no effect [-Wunused-value]
  for(i;i<n;i++)
  ^~~
/in/foo.c: In function 'main':
/in/foo.c:42:5: warning: statement with no effect [-Wunused-value]
     for(i;i<n1;i++)
     ^~~
/in/foo.c:47:2: warning: statement with no effect [-Wunused-value]
  for(i;i<n2;i++)
  ^~~
/in/foo.c: In function 'IsPrime':
/in/foo.c:27:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 1ms 468.0 KiB
#2 Accepted 1ms 424.0 KiB
#3 Accepted 1ms 316.0 KiB
#4 Accepted 1ms 212.0 KiB
#5 Accepted 1ms 312.0 KiB

信息

递交者
类型
递交
比赛
基于整数数组的编程技能的进阶训练及二级真题训练(2019-4-13)
语言
C
递交时间
2019-04-13 18:20:15
评测时间
2019-04-13 18:20:15
评测机
分数
100
总耗时
7ms
峰值内存
468.0 KiB