Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In constructor 'Car::Car(int, std::string, int)':
prog.cc:27:14: warning: unused parameter 'year' [-Wunused-parameter]
   27 | Car::Car(int year, string make, int speed = 0 )
      |          ~~~~^~~~
prog.cc:27:27: warning: unused parameter 'make' [-Wunused-parameter]
   27 | Car::Car(int year, string make, int speed = 0 )
      |                    ~~~~~~~^~~~
prog.cc:27:37: warning: unused parameter 'speed' [-Wunused-parameter]
   27 | Car::Car(int year, string make, int speed = 0 )
      |                                 ~~~~^~~~~~~~~
Please enter the year of the car. 
Please enter the make/model of the car. 
Enter 1 to accelerate and enter 2 to break.
Accelerating.The current speed of the car is: -1727144363
Exit Code:
0