Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 12.2.0

Options
Warnings
Don't Use Boost
C++17
-pedantic-errors

$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:7:23: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 |     Subject newSubject();
      |                       ^~
prog.cc:7:23: note: remove parentheses to default-initialize a variable
    7 |     Subject newSubject();
      |                       ^~
      |                       --
prog.cc:7:23: note: or replace parentheses with braces to aggregate-initialize a variable
Exit Code:
0