turbo c++ vs gcc com

I am a newbe. i wrote a and compiled program in tc compiler. it gave correct outputs but when i submitted the code, wrong outputs are coming wen compiled through gcc compiler. pls help

http://www.codechef.com/viewsolution/4299849

code is here.

Turbo C/C++ is Adam’s time compiler…Avoid using Turbo C/C++ compiler,make a habit of using GCC…!
Happy Coding :slight_smile:

2 Likes

@pc:Check your Data type as per the given constraints…!

Simply, if you use turbo c++ you will never taste the real c++ flavor because you will always be forced to use libraries and syntax’s that are not standard. For ex conio.h.

“Keep Calm and Use GCC”

:slight_smile: