3. Various Types of Errors #
Created Thursday 23 April 2020
Verdicts on platforms:
- Accepted - Done
- TLE - Time Limit Exceeded
- Unchecked while loop
- Too slow - some change or major change in code
- Compilation Error
- Spelling error of some type.
- Header file problems
- std:: problem
- Runtime Error
- Divide By Zero
- Segmentation Fault - Accessing out of bounds or deleted memory location.
- Array size > 10^8 ^coz maximum array size 256MB
- In a function, we can make an make a static array of maximum size 10^6^(4 MB).
- Wrong Answer:
- Check the code - Dry run it
- Are corner cases missing.
- If there is some doubt we’ll likely get a Wrong Answer.
- Code-wise wrong answers:
- Integer multiplication overflow.
- Float or doubles overflow or precision error.
- Uninitialized variables.
- Anything else is a logical error.