Problem notduckhunt
User pearl333
Submission Time 2025-12-05 11:56:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

notduckhunt.cpp: In function ‘int main()’:
notduckhunt.cpp:9:9: error: ‘k’ was not declared in this scope
9 | if (n==k) {
| ^
notduckhunt.cpp:17:9: error: redeclaration of ‘long long int k [n]’
17 | int k[n]; pair<int,int> pref[n];
| ^
notduckhunt.cpp:9:9: note: ‘<typeprefixerror>k’ previously declared here
9 | if (n==k) {
| ^