Problem | eeducation |
---|---|
User | kiwiwi |
Submission Time | 2025-06-17 12:02:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eeducation.cpp: In function ‘void reverseArray(std::vector<int>&)’:
eeducation.cpp:18:9: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
18 | return temp;
| ^~~~
eeducation.cpp: In function ‘int main()’:
eeducation.cpp:40:15: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
40 | reverseArray(A);
| ^
eeducation.cpp:7:32: note: in passing argument 1 of ‘void reverseArray(std::vector<int>&)’
7 | void reverseArray(vector<int> &arr) {
| ~~~~~~~~~~~~~^~~
eeducation.cpp:41:15: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
41 | reverseArray(B);
| ^
eeducation.cpp:7:32: note: in passing argument 1 of ‘void reverseArray(std::vector<in