using namespace std;
#include <iostream>
#include <vector>

#define Array vector

#define printArray2(ary2) \
            cout << "[ "; \
            for(int i = 0; i< (int)ary2.size(); i++) { \
                cout << "{ "; \
                for(int k = 0; k<(int)ary2[i].size(); k++) { \
                    cout << ary2[i][k] << " "; \
                } \
                cout << "} "; \
            } \
            cout << "]" << endl

Array <Array <int>> emptyArray2(int row, int col) {
    Array <Array <int>> ary2;
    Array <int> tmp;
    for (int i = 0; i < row; i++) {
        tmp.clear();
        for (int k = 0; k < col; k++)
            tmp.push_back(0);
        ary2.push_back(tmp);
    }
    return ary2;
}

int main() {
    Array <Array <string>> grade = { {"수학", "90"}, {"영어", "70"}, {"과학", "88"} };
    grade.push_back({ "역사", "75" });
    printArray2(grade);

    Array <Array <int>> empArray = emptyArray2(3, 4);
    printArray2(empArray);
}