I cant figure out issues in this particular code. Worked on ideone, doesnt seem to give the correct output on the spoj compiler.
Accepted }
f==1; should be f=1;
What error is the judge returning?
Please use code tags when posting code. I have Edited your post to show this.
okay.umm it was showing wrong problem code.
oh got the error. thanks