Testing Correctly but submission is giving wrong answer

Compile and test is giving correct output for test cases but Sumbit is showing wrong answer. Please see.

@Ayush280301 just use brackets around x^y