prog.cpp: In function ‘int main()’:
prog.cpp:13:6: error: cannot bind rvalue reference of type ‘std::vector<int>&&’ to lvalue of type ‘std::vector<int>’
foo(v),
^
prog.cpp:5:6: note: initializing argument 1 of ‘void foo(std::vector<int>&&)’
void foo(std::vector<int>&& v) {
^~~
prog.cpp:14:2: error: expected primary-expression before ‘return’
return 0;
^~~~~~