i have successfully compiled and ran my program on ideone.com but still when i submit on spoj.com it gives me wrong answer. plz help