You didn't specify what the program should output, so there are many possibilities that result in a working program. It *looks* like this was intended:
int x = 24;
int y;
y = x-12;
cout<<y<<endl;
and it will display 12.
Answer:
Refresh the page or x out the page and come back in completely or restart your whole laptop/desktop/tablet/phone whatever device your using
Explanation:
it will restart the page to its original state. causing the glitching out to stop.
#include <iostream>
using namespace std;
int main() {
const int SCORES_SIZE = 4;
int oldScores[SCORES_SIZE];
int newScores[SCORES_SIZE];
int i = 0;
oldScores[0] = 10;
oldScores[1] = 20;
oldScores[2] = 30;
oldScores[3] = 40;
/* Your solution goes here */
for (i = 0; i < SCORES_SIZE; ++i) {
cout << newScores[i] <<" ";
}
cout << endl;
return 0;
}