Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 7.2.0

Options
Warnings
Don't Use Boost
C++11
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -std=c++11
prog.cc: In lambda function:
prog.cc:15:13: error: assignment of read-only variable 'x'
         x = 11;
             ^~
Exit Code:
1