projecttwo.cpp: In member function 'bool Weapon::did_you_hit()':
projecttwo.cpp:36: error: invalid use of member (did you forget the '&' ?)
projecttwo.cpp:39: error: invalid use of member (did you forget the '&' ?)
projecttwo.cpp: At global scope:
projecttwo.cpp:46: error: expected identifier before '&' token
projecttwo.cpp:46: error: 'const' qualifiers cannot be applied to 'int&'
projecttwo.cpp:46: error: ISO C++ forbids declaration of 'knight' with no type
projecttwo.cpp:52: error: expected identifier before '&' token
projecttwo.cpp:52: error: 'const' qualifiers cannot be applied to 'int&'
projecttwo.cpp:52: error: ISO C++ forbids declaration of 'knight' with no type
projecttwo.cpp: In member function 'bool Knight::on_horse(int)':
projecttwo.cpp:58: error: 'stam' was not declared in this scope
projecttwo.cpp: At global scope:
projecttwo.cpp:67: error: prototype for'bool Knight::attack(Weapon)' does not match any in class'Knight'
projecttwo.cpp:45: error: candidate is: bool Knight::attack()
projecttwo.cpp: In function 'int main()':
projecttwo.cpp:81: error: 'knight' was not declared in this scope
projecttwo.cpp:81: error: expected ';' before 'k1'
projecttwo.cpp:83: error: 'k1' was not declared in this scope
projecttwo.cpp:93: error: expected ';' before 'k2'
projecttwo.cpp:95: error: 'k2' was not declared in this scope
projecttwo.cpp:96: error: no match for'operator>>' in 'std::cout >> "What is"'
projecttwo.cpp:96: error: 'name' was not declared in this scope
projecttwo.cpp:98: error: no match for'operator>>' in 'std::cout >> "What is knights weapon?"'
projecttwo.cpp:111: error: 'did_you_hit' was not declared in this scope
projecttwo.cpp:117: error: expected '}' at end of input
projecttwo.cpp:18: error: expected ')' before 'type'
projecttwo.cpp: In constructor 'Knight::Knight(std::string, int, Weapon)':
projecttwo.cpp:62: error: 'n' was not declared in this scope
projecttwo.cpp:62: error: no matching function for call to 'Weapon::Weapon()'
projecttwo.cpp:13: note: candidates are: Weapon::Weapon(std::string, int, int)
projecttwo.cpp:6: note: Weapon::Weapon(const Weapon&)
projecttwo.cpp: In member function 'bool Knight::on_horse()':
projecttwo.cpp:69: error: 'stam' was not declared in this scope
projecttwo.cpp: At global scope:
projecttwo.cpp:78: error: prototype for'bool Knight::attack(Weapon)' does not match any in class'Knight'
projecttwo.cpp:55: error: candidate is: bool Knight::attack()
projecttwo.cpp: In function 'int main()':
projecttwo.cpp:92: error: 'knight' was not declared in this scope
projecttwo.cpp:92: error: expected ';' before 'k1'
projecttwo.cpp:94: error: 'k1' was not declared in this scope
projecttwo.cpp:104: error: expected ';' before 'k2'
projecttwo.cpp:106: error: 'k2' was not declared in this scope
projecttwo.cpp:107: error: no match for'operator>>' in 'std::cout >> "What is"'
projecttwo.cpp:107: error: 'name' was not declared in this scope
projecttwo.cpp:109: error: no match for'operator>>' in 'std::cout >> "What is knights weapon?"'
projecttwo.cpp:122: error: 'did_you_hit' was not declared in this scope
projecttwo.cpp:128: error: expected '}' at end of input