CPP compiler is broken


#1

cpp compiler is broken for this problem. output shows 1 for custom input 2 1 2 for my code, even the test cases pass, but on submitting the same code, output for 2 1 2 shows to be 0. Same logic worked and passed all test cases in python3.