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.
You're declaring a variable with name strlen. That name is reserved (it's a string function). If you rename that variable, code gets WA on Test 81. See -> 19962770.