记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:2: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |  scanf_s("%d",&a);
      |  ^~~~~~~
      |  scanf
foo.cc:8:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    8 | for(c=2;c<a;c++);
      | ^~~
foo.cc:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    9 |         {if(a%c==0)
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-1 素数专题:因子的和
比赛
2022年迎新赛(第一场)
语言
C++
递交时间
2022-08-15 15:22:28
评测时间
2022-08-15 15:22:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes