Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 1 year ago

Language

C++

Compiler

gcc HEAD 14.0.0 20231116 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2b(GNU)
-pedantic-errors

Author

anonymous

over 1 year ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=gnu++2b -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:5:10: error: too many arguments to function 'void f(int)'
    5 |         f(1, 2);
      |         ~^~~~~~
prog.cc:1:6: note: declared here
    1 | void f(int);
      |      ^
Exit Code:
1