记录详情

Accepted

foo.c: In function 'main':
foo.c:8:16: warning: statement with no effect [-Wunused-value]
  for(x=n;x>10;x/10)
               ~^~~
foo.c:12:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(x%i==0)
    ^~
foo.c:14:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     break;
     ^~~~~
foo.c:19:16: warning: statement with no effect [-Wunused-value]
  for(x=n;x>10;x/10)
               ~^~~
foo.c:23:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(x%i!=0)
    ^~
foo.c:25:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     break;
     ^~~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB

信息

递交者
类型
自测
题目
A5-1 超级素数判断
语言
C
递交时间
2021-10-21 15:21:37
评测时间
2021-10-21 15:21:37
评测机
分数
10
总耗时
1ms
峰值内存
256.0 KiB