Problem funnyhat
User wongyikai
Submission Time 2024-12-30 16:37:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnyhat.cpp: In function ‘int find_hat2(int, std::vector<int>)’:
funnyhat.cpp:37:21: error: expected ‘;’ before ‘<’ token
37 | for (int i=x+1,i<n;i++){
| ^
| ;
funnyhat.cpp:37:21: error: expected primary-expression before ‘<’ token
funnyhat.cpp:46:36: error: a function-definition is not allowed here before ‘{’ token
46 | int find_hat(int n, vector<int> h) {
| ^
funnyhat.cpp:98:1: error: expected ‘}’ at end of input
98 | }
| ^
funnyhat.cpp:6:36: note: to match this ‘{’
6 | int find_hat2(int n, vector<int> h){
| ^