Problem duckhunt2
User Sans12345
Submission Time 2025-01-11 15:33:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt2.cpp:10:16: error: array bound is not an integer constant before ‘]’ token
10 | long long arr[n], brr[m];
| ^
duckhunt2.cpp:10:24: error: array bound is not an integer constant before ‘]’ token
10 | long long arr[n], brr[m];
| ^
duckhunt2.cpp: In function ‘int main()’:
duckhunt2.cpp:13:38: error: ‘arr’ was not declared in this scope
13 | for (int i = 0; i < n; i++) cin >> arr[i];
| ^~~
duckhunt2.cpp:14:38: error: ‘brr’ was not declared in this scope
14 | for (int i = 0; i < m; i++) cin >> brr[i];
| ^~~
duckhunt2.cpp:21:24: error: ‘brr’ was not declared in this scope
21 | while (c1 < m && brr[c1] < arr[i] - mid) c1++;
| ^~~
duckhunt2.cpp:21:34: error: ‘arr’ was not declared in this scope
21 | while (c1 < m