#include <iostream> #include <algorithm> #include <cstring> #include <string> #include <map> using namespace std; typedef struct rect { int x, y; rect* next; } rect; int main() { while (true) { rect* head=new rect; head->next=NULL; ...