Please help....my code is running fine in code blocks but in Spoj it is giving Compilation error and sometimes runtime error Problemhttp://www.spoj.com/problems/APS/My submissionhttp://www.spoj.com/submit/APS/id=15596326
Nobody can see your submission (only the problem setter) .Please post your code here.
In addition to @daft_wullie's request, if you have a compilation error, you can click on it and it will show you the error. If you get runtime error, we need to know which type (NZEC, SIGSEGV, etc)