Problem funnyhat
User hmm
Submission Time 2024-12-30 17:02:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:18:21: error: declaration of ‘int N’ shadows a parameter
18 | int inv[N]; int N = n;
| ^
funnyhat.cpp:18:25: error: ‘n’ was not declared in this scope
18 | int inv[N]; int N = n;
| ^