Problem splithunny
User sharelletqx
Submission Time 2026-07-25 10:50:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:21:4: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
21 | cnt++;
| ^~~
| int
splithunny.cpp:41:34: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
41 | cout<<"Oh, bother. There are "<<cnt<<" pools of hunny.";
| ^~~
| int