Code works with 2d array but not with 2d vector


#1

Comment body goes here.


#2

No 2-D vector is also working fine.