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

Compile Error

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