fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8. vector<vector<string>> myvect{{"a","b"}, {"a","b"} } ;
  9.  
  10. std::cout << myvect.size() << endl;
  11.  
  12. for (int i = 0; i < myvect.size(); ++i) std::cout << myvect[i].size() << " ";
  13. std::cout << std::endl;
  14.  
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 3416KB
stdin
Standard input is empty
stdout
2
2 2