Basic calculator in c++

i am unable to solve this… its giving tle everytime… give the code in c++;