Language
C++
Compiler
clang 7.0.0
Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
clang 7.0.0
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
prog.cc:76:17: error: 'getGuarranteeLimit' marked 'override' but does not override any member functions
virtual double getGuarranteeLimit()override;
^
prog.cc:140:16: error: variable type 'SavingAccount' is an abstract class
SavingAccount obj(2.0);
^
prog.cc:23:17: note: unimplemented pure virtual method 'getGuaranteeLimit' in 'SavingAccount'
virtual double getGuaranteeLimit() = 0;
^
2 errors generated.