I know the difference between compile time and runtime errors, but does anyone have a cheat sheet, flashcards, free training resources, etc. specifically focused on being able to identify whether specific code will cause a compile time or runtime error? This was part of several questions on a test that I took previously and will need to retake and would love some good resources to memorize this or learn easy rules of thumb that will help identify which error would come up. This is a written test with no other resources available, so I cannot just test the code to see if it compiles. I'm pretty new to all of this, so please excuse me if I worded anything incorrectly. Thank you!
I am a noob and just started solving leetcode. But today I solved 2 medium difficulty questions which were running fine but when I submitted them it was showing runtime error (both were showing different runtime errors) . The solution was also very similar to mine but couldn't do it because of runtime error. Please help