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
Exit Code:
0
C++
gcc 12.2.0
$ 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