记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&n);
  ^~~~~
/in/foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:8:6: warning: implicit declaration of function 'ss' [-Wimplicit-function-declaration]
   if(ss(m))
      ^~
/in/foo.c:17:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d\n",count);
  ^~~~~~
/in/foo.c:17:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:17:2: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c: In function 'ss':
/in/foo.c:25:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i=2;i<=m-1;i++)
  ^~~
/in/foo.c:28:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   if(i==m)
   ^~
# 状态 耗时 内存占用
#1 Accepted 3ms 216.0 KiB
#2 Accepted 0ms 128.0 KiB
#3 Accepted 179ms 224.0 KiB
#4 Accepted 177ms 208.0 KiB
#5 Accepted 1ms 204.0 KiB

信息

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