My code is showing segmentation error

@vanshika1205
Replace line 34 with this vector<vector> arr(n,vector(m,0));
You were trying to put elements in an empty vector of size 0 so segmentation error