I am getting the error comparison between distinct pointe types std::string with this code
if(energy <= gymc3){
cout << "If you work out any further you could possibly die from a heart attack\nAre you sure you want to keep working out? Y/N" << endl;
cin >> gymc4;
if(gymc4 == 'y' || gymc4 == 'Y'){
string deadono[] = {"Heart Attack", "Your Still Alive"};
string gymc5 = deadono[rand()%2];
if(deadono == "Heart Attack"){
cout << "You had a Heart Attack from working out too hard, You are dead" << endl;
}
}
}
So first don't give us the full code, so we have no idea what type of variables we are looking at.
Then you decide that writing "error comparison" will give us more information about the error than your compiler. Genius!
Guessing at the rest of your code, I would say you are possibly using a string instead of a char for gymc4- in which case you would change 'y' and 'Y' to "y" and "Y"