SPOJ question WA- Complicated Expressions

Hello Everyone,

I have been trying this sum for quite a while but getting WA, could somebody provide me a test case where my code is faltering. Any help is highly appreciated.

Code Link: Complicated Expressions

Thanks in advance.