#include<bits/stdc++.h> using namespace std; bool isIP(string ip){ istringstream is(ip); string buffer; int num = 0; while(getline(is, buffer, ...