#include <iostream>
#include <vector>
using namespace std;
template<typename T>
T create_vec()
{
return T();
}
template<typename T, class SizeT, class ...SizeTs>
auto create_vec(SizeT sz, SizeTs... sizes)
{
return vector<decltype(create_vec<T>(sizes...))>(sz, create_vec<T>(sizes...));
}
int main()
{
int n = 10, m = 10;
auto matrix = create_vec<int>(n, m);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGU8dHlwZW5hbWUgVD4KVCBjcmVhdGVfdmVjKCkKewoJcmV0dXJuIFQoKTsKfQoKCnRlbXBsYXRlPHR5cGVuYW1lIFQsIGNsYXNzIFNpemVULCBjbGFzcyAuLi5TaXplVHM+CmF1dG8gY3JlYXRlX3ZlYyhTaXplVCBzeiwgU2l6ZVRzLi4uIHNpemVzKQp7CglyZXR1cm4gdmVjdG9yPGRlY2x0eXBlKGNyZWF0ZV92ZWM8VD4oc2l6ZXMuLi4pKT4oc3osIGNyZWF0ZV92ZWM8VD4oc2l6ZXMuLi4pKTsKfQoKCmludCBtYWluKCkKewoJaW50IG4gPSAxMCwgbSA9IDEwOwoJYXV0byBtYXRyaXggPSBjcmVhdGVfdmVjPGludD4obiwgbSk7Cn0=