Problem funnyhat
User Shadow1
Submission Time 2024-12-30 16:44:35
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:5:22: error: ‘n’ was not declared in this scope
5 | int low = 0, high = n-1;
| ^
funnyhat.cpp:10:4: error: ‘r’ was not declared in this scope
10 | r = mid;
| ^
funnyhat.cpp:14:9: error: ‘r’ was not declared in this scope
14 | return r;
| ^