Compile Error

foo.cc: In function 'int main()':
foo.cc:9:13: error: 'n' was not declared in this scope
    9 |  for(i=2;i<=n-1;i++)
      |             ^
foo.cc:19:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   19 |     else
      |     ^~~~
foo.cc:21:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   21 |  return 0;
      |  ^~~~~~
foo.cc:7:13: warning: unused variable 's' [-Wunused-variable]
    7 |     int m,i,s=0;
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1041 素数
语言
C++
递交时间
2021-12-12 11:31:00
评测时间
2021-12-12 11:31:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes