I tried changing the data types, but it is not compiled in spoj...Written in C, If anyone can help me to debug it, please reply or pm me. My program is working on my machine compiled with VC++6