tutorial3.cpp: In function 'int sort_even(int, int*)':
tutorial3.cpp:9:14: error: 'v' was not declared in this scope
else v.push_back(arr[i])
^
tutorial3.cpp:11:10: error: 'v' was not declared in this scope
sort(v.begin(), v.end());
^
tutorial3.cpp:12:19: error: unable to deduce 'auto&&' from 'v'
for (auto i : v) Refort v[i];
^
tutorial3.cpp:12:22: error: 'Refort' was not declared in this scope
for (auto i : v) Refort v[i];
^~~~~~
tutorial3.cpp:12:22: note: suggested alternative: 'Report'
for (auto i : v) Refort v[i];
^~~~~~
Report
tutorial3.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^