Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200919 (experimental)

Options
Warnings
Boost 1.73.0
C++11
-pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++11 -pedantic
prog.cc: In function 'int main()':
prog.cc:4:9: warning: case label value exceeds maximum value for type [-Wswitch-outside-range]
    4 |         case 2:
      |         ^~~~
prog.cc:3:11: warning: switch condition has boolean value [-Wswitch-bool]
    3 |     switch(b) {
      |           ^
Exit Code:
0