Problem funnyhat
User gelastropod
Submission Time 2024-12-30 16:30:56
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:62:23: error: ‘i’ was not declared in this scope
62 | bool res = see_hat(i);
| ^
funnyhat.cpp:74:4: error: ‘i’ was not declared in this scope
74 | i = carttree[crnt][aaaa];
| ^
funnyhat.cpp:83:9: error: redeclaration of ‘bool res’
83 | bool res = see_hat(i);
| ^~~
funnyhat.cpp:75:9: note: ‘bool res’ previously declared here
75 | bool res = see_hat(i);
| ^~~