Problem duckhunt4
User CalebKow
Submission Time 2025-06-23 06:39:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt4.cpp: In function ‘int main()’:
duckhunt4.cpp:8:8: error: expected ‘(’ before ‘x’
8 | while x != 0:
| ^
| (
duckhunt4.cpp:8:14: error: expected ‘)’ before ‘:’ token
8 | while x != 0:
| ~ ^
| )
duckhunt4.cpp:8:14: error: expected primary-expression before ‘:’ token
duckhunt4.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else {
| ^~~~