|
From: Antoni J. <a2...@gm...> - 2010-12-27 20:59:34
|
Code (init_vvp.cpp):
>
> // g++ -std=c++0x -c init_vvp.cpp
> #include <vector>
> #include <utility>
> using std::vector;
> using std::pair;
> vector<vector<int>> vv = { {1,2,3}, {4,5,6}, {7,8,9} };
> vector<pair<vector<int>,vector<int>>> vpv = { {{1,2,3},{-1,-2,-3}},
> {{4,5,6},{-4,-5,-6}}, {{7,8,9},{-7-8-9}} };
> vector<vector<pair<int,int>>> vvp = { {{1,-1},{2,-2},{3,-3}},
> {{4,-4},{5,-5},{6,-6}}, {{7,-7},{8,-8},{9,-9}} };
>
>
> The mingw32 4.5.0 compiler gives an error on the last line (line 8):
I think you have skipped the commas in the last triplet:
> {{4,5,6},{-4,-5,-6}}, {{7,8,9},{-7,-8,-9}} };
>
|