#include <iostream> #include <string> #include <stack> #include <map> using namespace std; map<char, int> prioit = { {'+', 0}, {'-', 0}, {'*', 1}, {'/', 1}, {'(', -1}, {')', 2} }; bool compare(char& a, char& b) { if (prioit[a] < prioit[b]...