记录详情

Compile Error

foo.c: In function 'main':
foo.c:20:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(s(a)==0);
   ^~
foo.c:21:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    i=0
    ^
foo.c:22:3: error: expected ';' before 'a'
   a=a/10;
   ^
foo.c:24:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(i=0)
       ^
foo.c: In function 's':
foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.c: In function 'main':
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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