Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:19:18: error: cannot bind rvalue reference of type 'int&&' to lvalue of type 'int'
     int&& x = foo(i);
               ~~~^~~
prog.cc:19:11: warning: unused variable 'x' [-Wunused-variable]
     int&& x = foo(i);
           ^
Exit Code:
1