Compile Error

foo.cc: In function 'int main()':
foo.cc:7:23: error: 'i' was not declared in this scope; did you mean 'iw'?
    7 |  for(int iw=2;iw<=n-1;i++){
      |                       ^
      |                       iw
foo.cc:5:12: warning: unused variable 'iw' [-Wunused-variable]
    5 |  int n,tmd,iw;
      |            ^~
foo.cc:16:8: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   16 |  system("pause");
      |  ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1047 素数
语言
C++
递交时间
2022-07-10 20:43:36
评测时间
2022-07-10 20:43:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes