Problem notduckhunt
User YSH2020
Submission Time 2025-12-04 23:44:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

notduckhunt.cpp: In function ‘int main()’:
notduckhunt.cpp:3:13: error: expected ‘;’ before ‘long’
3 | #define int long long
| ^~~~
notduckhunt.cpp:7:5: note: in expansion of macro ‘int’
7 | int a[n]; for (int i = 0; i < n; i++) cin >> a[i];
| ^~~
notduckhunt.cpp:7:50: error: ‘a’ was not declared in this scope
7 | int a[n]; for (int i = 0; i < n; i++) cin >> a[i];
| ^
notduckhunt.cpp:12:17: error: ‘a’ was not declared in this scope
12 | if (a[i] >= m) b[i]=1;
| ^