Problem funnyhat
User hmm
Submission Time 2024-12-30 17:01:56
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:26:24: error: ‘n’ was not declared in this scope
26 | for(int i = 0; i < n; i++) spt[i][0] = i;
| ^
funnyhat.cpp:27:30: error: ‘n’ was not declared in this scope
27 | for(int j = 1; (1<<j) <= n; j++) {
| ^