hqhs's blog

By hqhs, history, 5 years ago, In English

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.

  • Vote: I like it
  • 0
  • Vote: I do not like it

5 years ago, # |
  Vote: I like it +10 Vote: I do not like it

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.