Problem | guanine |
---|---|
User | PlayVoltz |
Submission Time | 2023-05-05 14:37:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guanine.cpp: In function ‘int main()’:
guanine.cpp:37:18: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<std::__cxx11::basic_string<char> >’
37 | str = slicing(str, str.begin(), str.begin() + num + 1)
| ^~~
guanine.cpp:3:34: note: in passing argument 1 of ‘std::vector<int> slicing(std::vector<int>&, int, int)’
3 | vector<int> slicing(vector<int>& arr,
| ~~~~~~~~~~~~~^~~
guanine.cpp:45:19: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<std::__cxx11::basic_string<char> >’
45 | str = slicing(str, str.begin()+num+1, str.end())
| ^~~
guanine.cpp:3:34: note: in passing argument 1 of ‘std::vector<int> slicing(std::vector<int>&, int, int)’
3 | vector<int> slicing(vector<