/in/ex4.cpp: In member function 'void creature::atk(creature, creature)':
/in/ex4.cpp:16:23: error: base operand of '->' has non-pointer type 'creature'
int fighta = A->atk;
^~
/in/ex4.cpp:18:5: error: expected primary-expression before '}' token
}//
^
/in/ex4.cpp:16:13: error: unused variable 'fighta' [-Werror=unused-variable]
int fighta = A->atk;
^~~~~~
/in/ex4.cpp:17:13: error: unused variable 'fightb' [-Werror=unused-variable]
int fightb =
^~~~~~
/in/ex4.cpp: In function 'int main()':
/in/ex4.cpp:42:5: error: 'cin' was not declared in this scope
cin >> es >> hus >> hos;
^~~
/in/ex4.cpp:42:5: note: suggested alternative: 'main'
cin >> es >> hus >> hos;
^~~
main
/in/ex4.cpp:47:5: error: 'string' was not declared in this scope
string battle1, battle2;
^~~~~~
/in/ex4.cpp:47:5: note: suggested alternative: 'struct'
string battle1, battle2;
^~~~~~
struct
/in/ex4.cpp:48:12: error: 'battle1' was not declared in this scope
cin >> battle1 >> battle2;
^~~~~~~
/in/ex4.cpp:48:23: error: 'battle2' was not declared in this scope
cin >> battle1 >> battle2;
^~~~~~~
/in/ex4.cpp:93:71: error: no matching function for call to 'Hobbits::Hobbits(int&, int&, int&, int&, int&)'
Hobbits hobbits_battle(hos, hol, hoa, flag_hobbit, opponent_habbit);
^
/in/ex4.cpp:32:7: note: candidate: constexpr Hobbits::Hobbits()
class Hobbits:public creature{
^~~~~~~
/in/ex4.cpp:32:7: note: candidate expects 0 arguments, 5 provided
/in/ex4.cpp:32:7: note: candidate: constexpr Hobbits::Hobbits(const Hobbits&)
/in/ex4.cpp:32:7: note: candidate expects 1 argument, 5 provided
/in/ex4.cpp:32:7: note: candidate: constexpr Hobbits::Hobbits(Hobbits&&)
/in/ex4.cpp:32:7: note: candidate expects 1 argument, 5 provided
/in/ex4.cpp:94:58: error: no matching function for call to 'Elves::Elves(int&, int&, int&, int&, int&)'
Elves elves_battle(es, el, ea, flag_elf, opponent_elf);
^
/in/ex4.cpp:23:7: note: candidate: constexpr Elves::Elves()
class Elves:public creature{
^~~~~
/in/ex4.cpp:23:7: note: candidate expects 0 arguments, 5 provided
/in/ex4.cpp:23:7: note: candidate: constexpr Elves::Elves(const Elves&)
/in/ex4.cpp:23:7: note: candidate expects 1 argument, 5 provided
/in/ex4.cpp:23:7: note: candidate: constexpr Elves::Elves(Elves&&)
/in/ex4.cpp:23:7: note: candidate expects 1 argument, 5 provided
/in/ex4.cpp:95:67: error: no matching function for call to 'Humans::Humans(int&, int&, int&, int&, int&)'
Humans humans_battle(hus, hul, hua, flag_human, opponent_human);
^
/in/ex4.cpp:28:7: note: candidate: constexpr Humans::Humans()
class Humans:public creature{
^~~~~~
/in/ex4.cpp:28:7: note: candidate expects 0 arguments, 5 provided
/in/ex4.cpp:28:7: note: candidate: constexpr Humans::Humans(const Humans&)
/in/ex4.cpp:28:7: note: candidate expects 1 argument, 5 provided
/in/ex4.cpp:28:7: note: candidate: constexpr Humans::Humans(Humans&&)
/in/ex4.cpp:28:7: note: candidate expects 1 argument, 5 provided
cc1plus: all warnings being treated as errors