Expected primary expression before '=' token
How can i fix it?Error is on the 10th line.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
include <fstream>
using namespace std;
ifstream f("date.in");
ofstream g("date.out");
int x,y,d;
int main ()
{
f>>x;
d=2;
if(y%d==0){if(y-d!==0)
d++;
else g<<y<<'\n';
f.close();
g.close();
return 0;
}
else y=y-1;
}
|
Last edited on
You are using !==, and I think you meant !=
Topic archived. No new replies allowed.