fork(4) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. vector<int>&& foo(vector<int>&& a) {
  6. return std::move(a);
  7. }
  8.  
  9. int main() {
  10. for (auto i:foo({1,2,3}))
  11. {
  12. cout<<i<<" ";
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Runtime error #stdin #stdout 0s 4248KB
stdin
Standard input is empty
stdout
Standard output is empty