'What does an exit value of -1 mean when compiling and how to debug it?

I am a C++ beginner. For some reason I cannot find a page with error codes and what they mean. Often my eclipse does this:

enter image description here

Does this -1 rather than 0 mean the same thing all the time? A segmentation fault perhaps? Or is it just a general "we didn't reach the end of the program" error?

Right now I put cout statements before and after every line until I find where it stops running. Is there somewhere specific I should look when seeing this -1?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source