problem with ' \n '

my compiler insert ‘\n’ even if it is not present in the source code i.e. it starts output in the next line only

please give an example code and compiler info , please elaborate the question

I am using codeblocks 13.12 with GNU GCC as compiler.

A new line is generally added after input…Are u getting a newline after using scanf…??
If yes then it is not an issue and it wont show any error on codechef.

Are you talking about this source code - CodeChef: Practical coding for everyone ?

In which you are reading input as

cin>>t;
cout<<'\n';

?

And later again

        cin>>n;
        cout<<'\n';

I am using codeblocks 13.12 with GNU GCC as compiler.