Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Exception occurs when the formatted string is not in the correct format (i.e, having leading or trailing spaces or non-digit characters)
OP solved it, closing...
Wondering the same thing I used stoi too. had a string variable add each sqaured number onto the string and return a stoi of that string. but I get error from an exception being caught. Not sure why this isn't allowed.
This comment is hidden because it contains spoiler information about the solution
When I use std::stoi it catches an exception in the unitttests.
Is it illegal to use stoi?