you cannot see it in the compiler, it is from the run time.
you do not have to have a terminal, a windows program can drop it into a messagebox instead of a console print, for example.
printf is C. use cout in c++ unless you have a reason not to. you are also using C includes, its <cstdio> and <cstdlib> in c++ and <iostream> for cout
the code you have is fine. well, almost, your return for main is outside of main and I think exit success is not right. Just return 0 or nothing at all or look up the proper exit success code.