See int f=“1” is wrong . int f=1 is right and I also think you are not aware of C++ Input/output fomats.
Once you refer tutorials in the internet and again try thi problem
plz make your basics clear about input/output
its cin >> n;
and int f=1;
n=0;
you are using unnecessarily " "
pls clear your concept about writing codes