Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Boost 1.79.0
C++17
-pedantic-errors

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=c++17 -pedantic-errors
prog.cc: In function 'int p(int)':
prog.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
prog.cc:8:11: warning: unused parameter 'k' [-Wunused-parameter]
    8 | int p(int k)
      |       ~~~~^
4
Exit Code:
0