vector> vec; //declaration of 2D vector of integers
int rows = 3; //number of rows int cols = 4; //number of columns
vec.resize(rows, vector(cols, 0)); //resizing and initializing 2D vector with 3 rows and 4 columns, filled with zeroes