pta common errors

result Explanation solve
Partially correct Part of the answer to the test point error Debug code to find the wrong place, carefully look at your ideas is not the right place
wrong format Wrong format output Carefully observe the subject output requirements, such as incorrect capitalization, spelling errors, omissions space, there is no line breaks, etc., output symbols are usually in English sign, must pay great attention! The best solution is to sample the output directly copied, then modified as required.
Wrong Answer Did not pass a test point The answer to your output is not the correct answer, please think carefully about the idea of ​​your code is correct! Is also possible that you forgot to output a newline, leading to answer heap together orz such as output 12 wrap 15, you forget output line feed, then your The output is 1215, with the obvious answer different
Time out Your code is not completed in the stipulated time This case first consider whether there is an infinite loop in your code, resulting in a program began to run not stop, and then consider whether their code is inefficient, such as the subject requires you to complete within 1s, 3s takes your code the completion of this topic, then you will get the results of running overtime
Memory Limit Your code memory usage exceeds the limit This code appears stating too much memory your code occupied by the need to re-think about memory usage, this problem rarely occurs
Non-zero return is not the main function returns 0 The end of the main function must have a return 0
Mistakes There was a problem point memory area Check the array index out of bounds, whether null pointer operation (the latter may occur), whether the number of recursive calls too much (mid possible), scanf check whether the address-of operator & Drain write
Floating-point error Floating point error code is run % D inspection whether the floating-point output, whether the situation encountered when a division by zero, floating point division
Output overrun Code output too much content Generally result in an endless loop output, resulting in output can not stop
internal error Internal evaluation system error Patience to wait for some time, pta staff will immediately solve the problem

Guess you like

Origin www.cnblogs.com/suyuan333/p/11233631.html