mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-07 01:23:57 -05:00
Changed exception to Unsolved to fit with naming convention
This commit is contained in:
@@ -67,7 +67,7 @@ void Problem10::reset(){
|
||||
std::string Problem10::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
std::stringstream results;
|
||||
results << "The sum of all the primes less than " << GOAL_NUMBER + 1 << " is " << sum;
|
||||
@@ -78,7 +78,7 @@ std::string Problem10::getString() const{
|
||||
uint64_t Problem10::getSum() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user