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++2a(GNU)
-pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:15:14: warning: format '%i' expects argument of type 'int', but argument 2 has type 'main()::S' [-Wformat=]
   15 |     printf("%i\n", s); // warning C4840 : non-portable use of class 'main::S'
      |             ~^      ~
      |              |      |
      |              int    main()::S
-376350372
0
Exit Code:
0