max
is an integer.
min
is an integer.
" " is a string.
You cannot add them together: it would either have to convert the string to a number - and it's doesn't think that's quiet what you meant to do - or convert the numbers to strings - and that sounds odd as well.
So it gives you an error which is basically saying "I don't; know what you want me to do here!"
And returning a string from your Main method isn't probably what you wanted to do either ... read the assignment again, and pay attention to this bit:
Quote:
Output:
For each testcase in a new line, print the maximum and minimum element in a single line with space in between.
Your code doesn't attempt to do that, either for each testcase as required, or even once!