0_0_14919835_24897.cpp:8:22: error: conflicting declaration 'std::vector<std::vector<int> > str' vector<vector<int> > str; ^ 0_0_14919835_24897.cpp:7:5: note: previous declaration as 'int str [1501][1501]' int str[1501][1501]; ^