relay.cpp:10:20: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool isEquiped=true;
^
relay.cpp:26:16: error: ‘Weapon’ has not been declared
void Equip(Weapon weapon)
^
relay.cpp:37:18: error: ‘Weapon’ has not been declared
void deEquip(Weapon weapon)
^
relay.cpp: In constructor ‘Player::Player(int, int, int, int, int)’:
relay.cpp:16:13: error: ‘cout’ was not declared in this scope
cout<<"Could not initialize Player";
^
relay.cpp:24:62: error: ‘min’ was not declared in this scope
BattleScore=Attack*(1+Power/100)*((1-min(CritChance,1))+min(CritChance,1)*CritDamage)*(1+AttackSpeed);
^
relay.cpp: In member function ‘void Player::Equip(int)’:
relay.cpp:29:24: error: request for member ‘Attack’ in ‘weapon’, which is of non-class type ‘int’
Attack+=weapon.Attack;
^
relay.cpp:30:23: error: request for member ‘Power’ in ‘weapon’, which is of non-class type ‘int’
Power+=weapon.Power;
^
relay.cpp:31:28: error: request for member ‘CritChance’ in ‘weapon’, which is of non-class type ‘int’
CritChance+=weapon.CritChance;
^
relay.cpp:32:28: error: request for member ‘CritDamage’ in ‘weapon’, which is of non-class type ‘int’
CritDamage+=weapon.CritDamage;
^
relay.cpp:33:29: error: request for member ‘AttackSpeed’ in ‘weapon’, which is of non-class type ‘int’
AttackSpeed+=weapon.AttackSpeed;
^
relay.cpp:34:62: error: ‘min’ was not declared in this scope
BattleScore=Attack*(1+Power/100)*((1-min(CritChance,1))+min(CritChance,1)*CritDamage)*(1+AttackSpeed);
^
relay.cpp: In member function ‘void Player::deEquip(int)’:
relay.cpp:40:24: error: request for member ‘Attack’ in ‘weapon’, which is of non-class type ‘int’
Attack-=weapon.Attack;
^
relay.cpp:41:23: error: request for member ‘Power’ in ‘weapon’, which is of non-class type ‘int’
Power-=weapon.Power;
^
relay.cpp:42:28: error: request for member ‘CritChance’ in ‘weapon’, which is of non-class type ‘int’
CritChance-=weapon.CritChance;
^
relay.cpp:43:28: error: request for member ‘CritDamage’ in ‘weapon’, which is of non-class type ‘int’
CritDamage-=weapon.CritDamage;
^
relay.cpp:44:29: error: request for member ‘AttackSpeed’ in ‘weapon’, which is of non-class type ‘int’
AttackSpeed-=weapon.AttackSpeed;
^
relay.cpp:45:62: error: ‘min’ was not declared in this scope
BattleScore=Attack*(1+Power/100)*((1-min(CritChance,1))+min(CritChance,1)*CritDamage)*(1+AttackSpeed);
^
relay.cpp: In member function ‘void Player::ShowBattleScore()’:
relay.cpp:53:9: error: ‘cout’ was not declared in this scope
cout<<BattleScore;
^
relay.cpp: In function ‘int main()’:
relay.cpp:62:9: error: ‘cin’ was not declared in this scope
cin>>a[i];
^
relay.cpp:66:5: error: ‘Weapon’ was not declared in this scope
Weapon CreeWeapon(a[10],a[11],a[12],a[13],a[14]);
^
relay.cpp:67:12: error: expected ‘;’ before ‘PabooWeapon’
Weapon PabooWeapon(a[15],a[16],a[17],a[18],a[19]);
^
relay.cpp:70:18: error: ‘CreeWeapon’ was not declared in this scope
Cree.deEquip(CreeWeapon);
^
relay.cpp:71:16: error: ‘PabooWeapon’ was not declared in this scope
Cree.Equip(PabooWeapon);
^
relay.cpp:74:54: error: ‘Compare’ was not declared in this scope
Compare(InitCreeBattleScore,Cree.GetBattleScore());
^