prog.cpp: In function ‘int main()’:
prog.cpp:15:12: error: expected primary-expression before ‘:’ token
switch (d):
^
prog.cpp:18:10: error: break statement not within loop or switch
break;
^~~~~
prog.cpp:19:9: error: case label ‘'-'’ not within a switch statement
case '-':
^~~~
prog.cpp:21:10: error: break statement not within loop or switch
break;
^~~~~
prog.cpp:22:9: error: case label ‘'*'’ not within a switch statement
case '*':
^~~~
prog.cpp:24:13: error: break statement not within loop or switch
break;
^~~~~
prog.cpp:25:9: error: case label ‘'/'’ not within a switch statement
case '/':
^~~~
prog.cpp:27:7: error: break statement not within loop or switch
break;
^~~~~
prog.cpp:28:3: error: case label not within a switch statement
default:
^~~~~~~
prog.cpp:31:7: error: break statement not within loop or switch
break;
^~~~~