| Problem | platonic8 |
|---|---|
| User | StewartStudios |
| Submission Time | 2026-03-29 16:46:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
platonic8.cpp: In function ‘void solve(std::vector<int>&, int, int, int, int)’:
platonic8.cpp:15:11: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘int’
15 | solve(l, mid, left_value, mid_value);
| ^
platonic8.cpp:8:25: note: in passing argument 1 of ‘void solve(std::vector<int>&, int, int, int, int)’
8 | void solve(vector<int> &a, int l, int r, int left_value, int right_value){
| ~~~~~~~~~~~~~^
platonic8.cpp:16:15: error: invalid initialization of non-const reference of type ‘std::vector<int>&’ from an rvalue of type ‘int’
16 | solve(mid + 1, r, mid_value, right_value);
| ~~~~^~~
platonic8.cpp:8:25: note: in passing argument 1 of ‘void solve(std::vector<int>&, int, int, int, int)’
8 | void solve(vector<int> &a, int l, int r, int left_value, int right_value){
| ~~~~~~~~~~~~~