### PilotCoder's blog

By PilotCoder, history, 7 weeks ago,

I finish this code, but the judger says I am out of bounds, can anyone tell me why or is there anyting wrong on other places? Thanks very much.

my submission

Begged for help.

• 0

 » 7 weeks ago, # |   0 You are passing the integer array c whose number of elements is 5 to the function check(int *a) that copies the first n items from a to temp. If n > 5, then out-of-bound error happens.
•  » » 7 weeks ago, # ^ |   0 Thanks for your help, but now I still stuck on test #2, without any hint. Can you help? submission
•  » » » 7 weeks ago, # ^ |   0 With pleasure. The problem editorial has sufficient hints.
•  » » » » 7 weeks ago, # ^ |   0 Yeah ofcourse, but I just can't find out where going wrong
•  » » » » » 7 weeks ago, # ^ |   0 Check the following update to the editorial solution if interested.124858743
•  » » » » » » 7 weeks ago, # ^ |   0 already AC, thanks for your help!!