Problem eeducation
User kiwiwi
Submission Time 2025-06-17 12:01:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eeducation.cpp: In function ‘int main()’:
eeducation.cpp:38:15: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
38 | 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:39:15: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
39 | reverseArray(B);
| ^
eeducation.cpp:7:32: note: in passing argument 1 of ‘void reverseArray(std::vector<int>&)’
7 | void reverseArray(vector<int> &arr) {
| ~~~~~~~~~~~~~^~~
eeducation.cpp:46:13: error: ‘result’ was not declared in this scope
46 | result.push_back(num);