Height of mountain 0 : 9 Height of mountain 1 : 8 Height of mountain 2 : 7 Height of mountain 3 : 3 Height of mountain 4 : 6 Height of mountain 5 : 5 Height of mountain 6 : 2 Height of mountain 7 : 4 int main() { // game loop while (1) { for (int i = 0; i < 8; i++) { int mountainH;int max=0; // represents the height of one mountain, from 9 to 0. cin >> mountainH; cin.ignore(); if (mountainH >= max) // Write an action using cout. DON'T FORGET THE "<< endl" // To debug: cerr << "Debug messages..." << endl; cout << i << endl; // The number of the mountain to fire on. } } }