Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

Welcome to the library management system, please type your commands.
> Realastic Case added to the system.
> Vg101. Introduction to Computer and Programming (Fall 2020) Homework #6 added to the system.
> Lab5 – Interpreter added to the system.
> 

JOJ Answer

Welcome to the library management system, please type your commands.
> Realastic Case added to the system.
> Vg101. Introduction to Computer and Programming (Fall 2020) Homework #6 added to the system.
> Lab5 – Interpreter added to the system.
> Student M added to the system.
> International Student N added to the system.
> Success! Vg101. Introduction to Computer and Programming (Fall 2020) Homework #6 is borrowed by Student M.
> Success! Lab5 – Interpreter is borrowed by Student M.
> Success! Realastic Case is borrowed by International Student N.
> Success! The following book has been returned:
1 Vg101. Introduction to Computer and Programming (Fall 2020) Homework #6
> Success! Vg101. Introduction to Computer and Programming (Fall 2020) Homework #6 is borrowed by International Student N.
> Fail! The book was borrowed by another customer.
> Unknown command!
> Success! The following book has been returned:
0 Realastic Case
> Success! The following book has been returned:
1 Vg101. Introduction to Computer