Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 1 year ago

Language

C++

Compiler

gcc 13.2.0

Options
Warnings
Optimization
Boost 1.83.0
C++2a
-pedantic-errors
Raw compiler options
-Wshadow

Author

anonymous

over 1 year ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.83.0-gcc-13.2.0/include -std=c++2a -pedantic-errors -Wshadow
prog.cc: In function 'int main()':
prog.cc:16:9: error: expected ';' before 'x'
   16 |     hoge x = 42;
      |         ^~
      |         ;
prog.cc:16:5: warning: statement has no effect [-Wunused-value]
   16 |     hoge x = 42;
      |     ^~~~
Exit Code:
1