{}
run-icon
main.cpp
#include <iostream> #include <vector> using namespace std; int main() { cout << "Hello" << endl; vector<vector<int>> foo{ { 1,2 }, {2, 3} }; vector<int> baa{ 1, 2 }; for(size_t i=0; i<foo.size(); i++) { bool is_equal = foo[i] == baa; cout << "foo[" << i << "] == baa: " << is_equal << endl; } return 0; }
Output