#include <iostream> #include <cstring> #include <stack> #include <map> using namespace std; map<char, int> level = {{'+', 1}, {'-', 1}, {'*', 2}, {'/', 2}}; double cpt(double a, double b, char c) { if( c == '+') return a + b; else if( c == '-') return a - b; ...