记录详情

Accepted

foo.c: In function 'main':
foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&n);
  ^~~~~
foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:5:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:7:6: warning: implicit declaration of function 'ss' [-Wimplicit-function-declaration]
   if(ss(i)&&ss(n-i))
      ^~
foo.c:8:4: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    printf("%d+%d=%d\n",i,n-i,n);
    ^~~~~~
foo.c:8:4: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:8:4: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=3;i<=n/2;i++)
  ^~~
foo.c:9:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return 0;
   ^~~~~~
foo.c: In function 'ss':
foo.c:16:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=2;i<=sqrt(m);i++)
  ^~~
foo.c:22:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return b;
   ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
南师大2021程序设计基础课程第一次测验 (2021-10-21)
语言
C
递交时间
2021-10-21 14:34:37
评测时间
2021-10-21 14:34:37
评测机
分数
100
总耗时
4ms
峰值内存
256.0 KiB