Hi, I also get an error (runtime error (NZEC)) in SPOJ. My code is working localy and on ideone. Can someone give some suggestions? https://ideone.com/2nQ14y
EDIT: My problem was that I show result for all numbers in one time after blank line was read