Problem duckhunt8
User YSH2020
Submission Time 2025-03-18 11:45:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt8.cpp: In function ‘int main()’:
duckhunt8.cpp:22:57: error: expected ‘;’ before ‘long’
22 | ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
| ^
| ;
duckhunt8.cpp:23:22: error: ‘n’ was not declared in this scope
23 | int n, q; cin >> n >> q;
| ^
duckhunt8.cpp:23:27: error: ‘q’ was not declared in this scope
23 | int n, q; cin >> n >> q;
| ^