记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:9:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(t=i;t;t=t/10)
   ^~~
/in/foo.c:12:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    if(!t)
    ^~
/in/foo.c: In function 'sushu':
/in/foo.c:21:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(n>2&&!(n&1)||n<2)
     ~~~^~~~~~~~
/in/foo.c:23:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=3;i*i<=n;i+=2)
  ^~~
/in/foo.c:26:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return 0;
   ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 220.0 KiB
#2 Accepted 0ms 128.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 128.0 KiB
#5 Accepted 0ms 204.0 KiB

信息

递交者
类型
递交
题目
A5-2 超级素数的个数
比赛
南师大2020(1,4)程序设计基础课程作业(2020-11-17)
语言
C
递交时间
2020-11-17 14:41:39
评测时间
2020-11-17 14:41:39
评测机
分数
100
总耗时
5ms
峰值内存
220.0 KiB