Why is it error?
#include <iostream> using namespace std; int main() { int Q1, Q2; cin >> Q1; cout << "PLEASE ENTER YOUR SECOND SCORE" << "\n"; cin>> Q2; cout << "\n"; int OutRange = {Q1 < 50 || Q2 < 50 || Q1 > 100 || Q2 > 100} "\n"; //OutRange means that the score is out of the range int withRange = (Q1 >= 50 && Q2 >= 50 || Q1 <= 100 && Q2 <= 100) "\n;" //withRange means that the score is within of the range cout <<"GENERATING RESULT... << "<<" \n": if (OutRange) { if (Q1 < 50 && Q2 < 50 || Q1 > 100 && Q2 > 100 || Q1 < 50 && Q2 > 100 || Q1 > 100 && Q2 < 50) { cout << "BOTH ARE INVALID"; } else if (Q1 < 50 || Q1 200) { cout << "Q1 1S INVALID"; } else if (Q2 < 50 || Q2 100) cout << "Q2 IS INVALID"; } else if (withRange) } cout<< "COMPUTING AVERAGE..." << "\n" ; return 0; }