Problem duckhunt5
User Yichen
Submission Time 2025-08-19 14:21:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp:5:8: error: cannot declare ‘::main’ to be a global variable
5 | signed main {
| ^~~~
duckhunt5.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
duckhunt5.cpp:7:2: note: in expansion of macro ‘int’
7 | int n, x;
| ^~~
duckhunt5.cpp:3:13: error: expected ‘}’ before ‘long’
3 | #define int long long
| ^~~~
duckhunt5.cpp:7:2: note: in expansion of macro ‘int’
7 | int n, x;
| ^~~
duckhunt5.cpp:5:13: note: to match this ‘{’
5 | signed main {
| ^
duckhunt5.cpp:9:2: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i < n: i++) {
| ^~~
duckhunt5.cpp:9:18: error: ‘i’ does not name a type
9 | for (int i = 0; i < n: i++) {
| ^
duckhunt5.cpp:23:1: error: expected declaration before ‘}’ token
23 | }