- range-based loop
// range-based loop
void PrintVecofVec1(vector<vector<int>>& res) {
for (auto& rowV : res) {
for (auto& el : rowV) {
cout << el << " ";
}
cout << "; ";
}
cout << endl;
}
- for遍历
void PrintVecofVec2(vector<vector<int>>& A) {
for (int i = 0