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:
@@ -75,7 +75,7 @@ void Problem2::reset(){
|
||||
std::string Problem2::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 the even Fibonacci numbers less than 4,000,000 is " << fullSum;
|
||||
@@ -86,7 +86,7 @@ std::string Problem2::getString() const{
|
||||
uint64_t Problem2::getSum() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return fullSum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user