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:
@@ -148,7 +148,7 @@ void Problem28::reset(){
|
||||
std::string Problem28::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
|
||||
std::stringstream results;
|
||||
@@ -161,7 +161,7 @@ std::string Problem28::getString() const{
|
||||
std::vector<std::vector<int>> Problem28::getGrid() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return grid;
|
||||
}
|
||||
@@ -170,7 +170,7 @@ std::vector<std::vector<int>> Problem28::getGrid() const{
|
||||
uint64_t Problem28::getSum() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return sumOfDiagonals;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user