Problem | funnyhat |
---|---|
User | Dolphy |
Submission Time | 2025-01-02 17:30:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:56:3: error: expected identifier before ‘int’
56 | int b=see_hat(i);
| ^~~
funnyhat.cpp:56:19: error: expected ‘]’ before ‘;’ token
56 | int b=see_hat(i);
| ^
| ]
funnyhat.cpp: In lambda function:
funnyhat.cpp:56:19: error: expected ‘{’ before ‘;’ token
funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:57:7: error: ‘b’ was not declared in this scope
57 | if (b==0) a++;
| ^
funnyhat.cpp: At global scope:
funnyhat.cpp:60:2: error: expected unqualified-id before ‘return’
60 | return a-7090;
| ^~~~~~
funnyhat.cpp:61:1: error: expected declaration before ‘}’ token
61 | }
| ^