fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int&& f()
  5. {
  6. int i = 0;
  7.  
  8. return i;
  9. }
  10.  
  11. int main() { }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int&& f()':
prog.cpp:8:9: error: cannot bind 'int' lvalue to 'int&&'
  return i;
         ^
stdout
Standard output is empty