Problem funnyhat
User polyda
Submission Time 2024-12-30 12:55:30
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:14: error: ‘h’ was not declared in this scope
7 | a[i].first=h[i];
| ^
funnyhat.cpp:12:26: error: expected ‘)’ before ‘{’ token
12 | if(see_hat(a[i].second){
| ~ ^
| )
funnyhat.cpp:15:2: error: expected primary-expression before ‘}’ token
15 | }
| ^