SPOJ question WA- Complicated Expressions

spoj
string-parsing
wa

#1

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.