fork download
  1. int main()
  2. {
  3. int x;
  4. int &&r = x;
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4:11: error: cannot bind ‘int’ lvalue to ‘int&&’
prog.cpp:4:7: warning: unused variable ‘r’ [-Wunused-variable]
stdout

Standard output is empty