Problem mosaic3
User yc
Submission Time 2025-12-19 11:40:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mosaic3.cpp: In function ‘std::vector<int> mosaic3(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
mosaic3.cpp:7:42: error: a function-definition is not allowed here before ‘{’ token
7 | int hi1(int i ,int j, std::vector<int> p){
| ^
mosaic3.cpp:27:23: error: ‘hi1’ was not declared in this scope; did you mean ‘hi’?
27 | ans.push_back(hi1(R[i],C[i],P));
| ^~~
| hi