ostream& Print (ostream & amp; OS, const QueryResult & amp; Qr) {
OS & lt;//print each word
For (auto m: * qr. Lines) {
OS & lt; <"(line" & lt;}
Return the OS;
}
The qr. Lines are STD: : from & lt; STD: : set
As shown in figure
For help bosses
ostream& Print (ostream & amp; OS, const QueryResult & amp; Qr) {
OS & lt;//print each word
For (auto m: * qr. Lines) {
OS & lt; <"(line" & lt;}
Return the OS;
}