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:9:4: error: 'tmd' was not declared in this scope; did you mean 'tm'?
    9 |    tmd+=n;
      |    ^~~
      |    tm
foo.cc:12:5: error: 'tmd' was not declared in this scope; did you mean 'tm'?
   12 |  if(tmd==2)
      |     ^~~
      |     tm
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:32:40
评测时间
2022-07-10 20:32:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes