0
Compile error : when you forget a semicolon, for instance, or when you do types mistakes (you give an int to a function that takes a string as argument)
Segmentation fault : you try to write in some places in memory you shouldn't have access (in recursion, for example)