Guest User

Untitled

a guest
Jan 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. prog.cpp:24: error: ‘BitPopulation’ has not been declared
  2. prog.cpp:24: error: ISO C++ forbids declaration of ‘BitPopulation’ with no type
  3. prog.cpp: In function ‘int BitPopulation(int, double, int)’:
  4. prog.cpp:28: error: ‘bitPop’ was not declared in this scope
  5. prog.cpp:28: error: ‘BitIndividual’ was not declared in this scope
  6. prog.cpp:28: error: template argument 1 is invalid
  7. prog.cpp:28: error: template argument 2 is invalid
  8. prog.cpp:30: error: ‘bitFit’ was not declared in this scope
  9. prog.cpp:34: error: ‘vecSize’ was not declared in this scope
  10. prog.cpp:36: error: ‘popSize’ was not declared in this scope
  11. prog.cpp:38: error: ‘fitThreshold’ was not declared in this scope
  12. prog.cpp:42: error: ‘bestIndex’ was not declared in this scope
  13. prog.cpp: At global scope:
  14. prog.cpp:48: error: ‘BitPopulation’ is not a class or namespace
  15. prog.cpp: In function ‘int getPopSize()’:
  16. prog.cpp:50: error: ‘popSize’ was not declared in this scope
  17. prog.cpp: At global scope:
  18. prog.cpp:56: error: ‘BitPopulation’ is not a class or namespace
  19. prog.cpp: In function ‘void populateRandomly()’:
  20. prog.cpp:60: error: ‘popSize’ was not declared in this scope
  21. prog.cpp:64: error: ‘BitIndividual’ was not declared in this scope
  22. prog.cpp:64: error: ‘bits’ was not declared in this scope
  23. prog.cpp:64: error: expected type-specifier before ‘BitIndividual’
  24. prog.cpp:64: error: expected `;' before ‘BitIndividual’
  25. prog.cpp:72: error: ‘bitPop’ was not declared in this scope
  26. prog.cpp:74: error: ‘bitFit’ was not declared in this scope
  27. prog.cpp: At global scope:
  28. prog.cpp:86: error: ‘BitPopulation’ is not a class or namespace
  29. prog.cpp: In function ‘double getBestFitness()’:
  30. prog.cpp:94: error: ‘popSize’ was not declared in this scope
  31. prog.cpp:96: error: ‘bitFit’ was not declared in this scope
  32. prog.cpp:100: error: ‘bestIndex’ was not declared in this scope
  33. prog.cpp: At global scope:
  34. prog.cpp:110: error: ‘BitPopulation’ is not a class or namespace
  35. prog.cpp: In function ‘std::string getBestGenes()’:
  36. prog.cpp:114: error: ‘bitPop’ was not declared in this scope
  37. prog.cpp:114: error: ‘bestIndex’ was not declared in this scope
  38. prog.cpp: At global scope:
  39. prog.cpp:124: error: ‘BitPopulation’ is not a class or namespace
  40. prog.cpp: In function ‘int randomParent()’:
  41. prog.cpp:140: error: ‘popSize’ was not declared in this scope
  42. prog.cpp:142: error: ‘bitFit’ was not declared in this scope
  43. prog.cpp:158: error: ‘popSize’ was not declared in this scope
  44. prog.cpp:162: error: ‘bitFit’ was not declared in this scope
  45. prog.cpp: At global scope:
  46. prog.cpp:182: error: expected constructor, destructor, or type conversion before ‘*’ token
Add Comment
Please, Sign In to add comment