mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Changed exception to Unsolved to fit with naming convention
This commit is contained in:
@@ -461,7 +461,7 @@ void Problem22::reset(){
|
||||
std::string Problem22::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
std::stringstream results;
|
||||
results << "The answer to the question is " << mee::getSum(prod);
|
||||
@@ -472,7 +472,7 @@ std::string Problem22::getString() const{
|
||||
std::vector<std::string> Problem22::getNames() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return names;
|
||||
}
|
||||
@@ -481,7 +481,7 @@ std::vector<std::string> Problem22::getNames() const{
|
||||
uint64_t Problem22::getNameScoreSum() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return mee::getSum(prod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user