Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prog.cpp:24: error: ‘BitPopulation’ has not been declared
- prog.cpp:24: error: ISO C++ forbids declaration of ‘BitPopulation’ with no type
- prog.cpp: In function ‘int BitPopulation(int, double, int)’:
- prog.cpp:28: error: ‘bitPop’ was not declared in this scope
- prog.cpp:28: error: ‘BitIndividual’ was not declared in this scope
- prog.cpp:28: error: template argument 1 is invalid
- prog.cpp:28: error: template argument 2 is invalid
- prog.cpp:30: error: ‘bitFit’ was not declared in this scope
- prog.cpp:34: error: ‘vecSize’ was not declared in this scope
- prog.cpp:36: error: ‘popSize’ was not declared in this scope
- prog.cpp:38: error: ‘fitThreshold’ was not declared in this scope
- prog.cpp:42: error: ‘bestIndex’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:48: error: ‘BitPopulation’ is not a class or namespace
- prog.cpp: In function ‘int getPopSize()’:
- prog.cpp:50: error: ‘popSize’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:56: error: ‘BitPopulation’ is not a class or namespace
- prog.cpp: In function ‘void populateRandomly()’:
- prog.cpp:60: error: ‘popSize’ was not declared in this scope
- prog.cpp:64: error: ‘BitIndividual’ was not declared in this scope
- prog.cpp:64: error: ‘bits’ was not declared in this scope
- prog.cpp:64: error: expected type-specifier before ‘BitIndividual’
- prog.cpp:64: error: expected `;' before ‘BitIndividual’
- prog.cpp:72: error: ‘bitPop’ was not declared in this scope
- prog.cpp:74: error: ‘bitFit’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:86: error: ‘BitPopulation’ is not a class or namespace
- prog.cpp: In function ‘double getBestFitness()’:
- prog.cpp:94: error: ‘popSize’ was not declared in this scope
- prog.cpp:96: error: ‘bitFit’ was not declared in this scope
- prog.cpp:100: error: ‘bestIndex’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:110: error: ‘BitPopulation’ is not a class or namespace
- prog.cpp: In function ‘std::string getBestGenes()’:
- prog.cpp:114: error: ‘bitPop’ was not declared in this scope
- prog.cpp:114: error: ‘bestIndex’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:124: error: ‘BitPopulation’ is not a class or namespace
- prog.cpp: In function ‘int randomParent()’:
- prog.cpp:140: error: ‘popSize’ was not declared in this scope
- prog.cpp:142: error: ‘bitFit’ was not declared in this scope
- prog.cpp:158: error: ‘popSize’ was not declared in this scope
- prog.cpp:162: error: ‘bitFit’ was not declared in this scope
- prog.cpp: At global scope:
- prog.cpp:182: error: expected constructor, destructor, or type conversion before ‘*’ token
Add Comment
Please, Sign In to add comment