Broken calculator

https://ide.codingblocks.com/s/39756
this is for https://hack.codingblocks.com/contests/c/537/110
I am getting run-error in 1 case, rest all are passing

Where am i going wrong?

Thanks.

got thru using long long int
sorry for the trouble

Its great that you found the mistake yourself.
See the constraints carefully. Its very important.