#include<iostream> #include<string> #include<vector> #include<map> #include<algorithm> #include<stdio.h> #include<string.h> #include<queue> using namespace std; struct Tree{ int number; int val; int left_node; int flag; int right_node; int f...