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:
@@ -97,7 +97,7 @@ void Problem30::reset(){
|
||||
std::string Problem30::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
|
||||
std::stringstream results;
|
||||
@@ -110,7 +110,7 @@ std::string Problem30::getString() const{
|
||||
uint64_t Problem30::getTopNum() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
|
||||
return TOP_NUM;
|
||||
@@ -120,7 +120,7 @@ uint64_t Problem30::getTopNum() const{
|
||||
std::vector<uint64_t> Problem30::getListOfSumOfFifths() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
|
||||
return sumOfFifthNumbers;
|
||||
@@ -130,7 +130,7 @@ std::vector<uint64_t> Problem30::getListOfSumOfFifths() const{
|
||||
uint64_t Problem30::getSumOfList() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
|
||||
uint64_t sum = 0;
|
||||
|
||||
Reference in New Issue
Block a user