There are several problems in your code, but they are all easy to fix.
First,
"int n" should be follow by a ";"
second,
= means to assign something, while == is to compare.
Try changing if(n = 6) to if(n==6)
third,
int main() should return something, Try adding return 0 at the end of main. Also, main is a function, and should not have ; at the end
Code:
#include <iostream>
using namespace std;
int main
{
int n;
cout<<"5+1= ";
cin>> n;
cin.ignore();
if ( n == 6 ) {
cout<<"Good Job! That was fun right?";
}
cin.get();
return 0;
}