Problem | funnyhat |
---|---|
User | hmm |
Submission Time | 2024-12-30 16:15:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
funnyhat.cpp: In function ‘int query(int, int)’:
funnyhat.cpp:19:8: error: ‘arr’ was not declared in this scope
19 | if(arr[spt[x][k]] > arr[spt[y-(1<<k)+1][k]]) return spt[x][k];
| ^~~
funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:32:24: error: ‘n’ was not declared in this scope
32 | for(int i = 0; i < n; i++) spt[i][0] = i;
| ^
funnyhat.cpp:33:30: error: ‘n’ was not declared in this scope
33 | for(int j = 1; (1<<j) <= n; j++) {
| ^