/in/foo.cc:23:9: error: 'double Account::getBalance()' cannot be overloaded
double getBalance();
^~~~~~~~~~
/in/foo.cc:13:9: error: with 'double Account::getBalance()'
double getBalance() { return balance; }
^~~~~~~~~~
/in/foo.cc: In member function 'double Account::debit(double)':
/in/foo.cc:69:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
/in/foo.cc:71:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
return balance;
^~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:74:8: error: redefinition of 'double Account::getBalance()'
double Account::getBalance()
^~~~~~~
/in/foo.cc:13:9: note: 'double Account::getBalance()' previously defined here
double getBalance() { return balance; }
^~~~~~~~~~
/in/foo.cc: In member function 'double CheckingAccount::debit(double)':
/in/foo.cc:114:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^