Oh thanks for telling about the last case.
Yeah array of vectors is much simpler. But I'm preparing for a test in which we are not allowed to use any library. So I was practising via pointers.
And another strange thing that's happening is that almost same code, atleast the parts giving the warning, is not giving any warning in another code. I literally checked each line. No idea. Will see about it later.