Problem funnyhat
User wongyikai
Submission Time 2024-12-30 16:17:07
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:7:2: error: ‘ll’ was not declared in this scope
7 | ll l=0,r=n;
| ^~
funnyhat.cpp:8:9: error: ‘l’ was not declared in this scope
8 | while (l<r){
| ^
funnyhat.cpp:8:11: error: ‘r’ was not declared in this scope
8 | while (l<r){
| ^
funnyhat.cpp:9:5: error: expected ‘;’ before ‘m’
9 | ll m = l + (h-l)/2;
| ^~
| ;
funnyhat.cpp:10:15: error: ‘m’ was not declared in this scope
10 | if (see_hat(m)) r=m;
| ^
funnyhat.cpp:13:9: error: ‘l’ was not declared in this scope
13 | return l;
| ^