#include <iostream> #include<unordered_map> #include<string> #include<deque> using namespace std; int main() { string s; unordered_map<string, int>mp; deque<string>dq; while (getline(cin, s)) { int pos, end = 0; string str = s.substr(s.find_last_of('\\') + 1); pos...