c++ ">#include<string> #include<vector> #include<algorithm> using namespace std; int main(){ vector<string> input; string temp; int n; cin>>n; while (n--){ cin>>temp; input.push_back(temp); } sort(input.begin(),input.end...