Problem funnyhat
User tacticalnerd
Submission Time 2024-12-30 16:46:08
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:52:16: error: ‘l’ was not declared in this scope
52 | int mid = (h+l)/2;
| ^
funnyhat.cpp:66:1: error: expected ‘}’ at end of input
66 | }
| ^
funnyhat.cpp:10:36: note: to match this ‘{’
10 | int find_hat(int n, vector<int> h) {
| ^