Basic calculator

NOT PASSING ALL THE TEST CASES.
link to my code https://ide.codingblocks.com/s/209933