Compile Error

foo.cc: In function 'int main()':
foo.cc:13:10: error: 'k' was not declared in this scope
   13 |          k++
      |          ^
foo.cc:16:11: error: 'k' was not declared in this scope
   16 |        if(k==0)
      |           ^
foo.cc:19:9: error: 'count' was not declared in this scope
   19 |         count++;
      |         ^~~~~
foo.cc:21:5: error: expected primary-expression before '}' token
   21 |     }
      |     ^
foo.cc:8:11: warning: unused variable 'K' [-Wunused-variable]
    8 |       int K=0;
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1044 所有的素数
语言
C++
递交时间
2021-12-18 09:01:51
评测时间
2021-12-18 09:01:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes