#include <iostream>using namespace std; int&& f(){ int i = 0; return i;} int main() { }
Standard input is empty
prog.cpp: In function 'int&& f()': prog.cpp:8:9: error: cannot bind 'int' lvalue to 'int&&' return i; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!