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:20:17: error: 'count' was not declared in this scope
   20 |        }     if(count%5==0)
      |                 ^~~~~
foo.cc:22:6: error: expected primary-expression before '}' token
   22 |      }cout<<endl;
      |      ^
foo.cc:8:11: warning: unused variable 'K' [-Wunused-variable]
    8 |       int K=0;
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

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