I've just started programming. I've followed a tutorial video and entered the code like he did. It works for him but not for me and I can't find the mistake. It could be a typo but I've checked multiple times. The required packages to run iostream and so forth are installed. It says the error message in the title:
#include <iostream>
using namespace std;
int main()
{
    int secretNum = 7;
    int guess;
    while (secretNum != guess) {
        cout << "Enter guess please: ";
        cin >> guess;
    }
    cout << "Win";
    return 0;
}
 
     
    