Homework 1

Briefly describe an error from your past projects that you have recently completed or an error from other projects which impress you most.

State the reason, impact of the error and how did you find it.

 

As I had made a string of mistakes in my projects, the most impressive error is the one during an ACM simulation when I was a new member.

I tried the test case many times and the answer is always right, so I submit my code again and again. But I always get an wrong answer feedback. At last I input several test cases and get the wrong answer from the second case to the last case. The fault is that I use “memset” to clear an array, but I put it out of the loop statement, which made it useless after the first case, and the array will not be cleared, and the data would be wrong and get an wrong answer.

I move it into the loop again and Accepted. It is a small low-grade mistake, but it wastes my precious time to solve other questions.

posted @ 2018-03-09 12:30  funifunifuni  阅读(93)  评论(0编辑  收藏  举报