Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 3 years ago

Language

C++

Compiler

gcc HEAD 13.0.0 20220607 (experimental)

Options
Warnings
Don't Use Boost
C++17
-pedantic-errors
Raw compiler options
-Wno-unused-parameter

Author

anonymous

almost 3 years ago

$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors -Wno-unused-parameter
prog.cc:14:33: error: expected identifier before numeric constant
   14 |     Something<float> mSomething(100);
      |                                 ^~~
prog.cc:14:33: error: expected ',' or '...' before numeric constant
prog.cc:15:2: error: expected ';' after class definition
   15 | }
      |  ^
      |  ;
prog.cc: In function 'int main()':
prog.cc:19:19: warning: unused variable 'aSE' [-Wunused-variable]
   19 |     SomethingElse aSE;
      |                   ^~~
Exit Code:
1