I'm getting runtime error, though code works fine on local computer.
First time then i tried to do it, i used vector of strings. And change the length of strings in input() method, what could possibly rellocate the memory (but still works fine on my local computer). Now i use 2d-array of char.
Here's the submission.
I've used search but still can't find the problem.