Form biggest number wrong output

IT IS running fine and giving correct output too,whats the problem ?
code link-https://ide.codingblocks.com/s/105494

Hello @Ajaypandey,

There is a very small problem with the output format of your code.
It is not matching with the output format of the program.

What do you think, How does the output should look like for the testcase having t>1 i.e. multiple sub-testcases?
Your code is printing the output for each sub-testcases on the same.
But, the question require you print output of each sub-testcase on different line.
I understand, this is not mentioned clearly in the question.

Solution:
for(i=0;i<n;i++){
cout<<s[i];
}
cout<<endl;

Hope, this would help.
Give a like, if you are satisfied.

1 Like

thank you bhaiya !!! :wink:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like