Notes
This function is in beta test. Please help improve it in the issues
here.
terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 3) > this->size() (which is 2) ./run.sh: line 4: 22872 Aborted (core dumped) ./bank -f test-$1-reg.txt -v < test-$1-commands.txt > tmp terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 3) > this->size() (which is 2) ./run.sh: line 9: 22875 Aborted (core dumped) ./bank -f test-$1-reg.txt < test-$1-commands.txt > tmp
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
Verbose: 8a9,36 > User p5 logged out. > Sender p5 is not logged in. > Select a time less than three days in the future. > Customer p5 account summary: > Balance: $2000 > Total # of transactions: 0 > Incoming 0: Non Verbose: 0a1,25 > Customer p5 account summary: > Balance: $2000 > Total # of transactions: 0 > Incoming 0: > Outgoing 0: > Customer p2 account summary: > Balance: $1000
JOJ Answer
Verbose: Non Verbose: