CPP:Reduntant Parenthesis

Why is my code giving wrong answer?
The code is: