Question about vector C++

why does the compiler want me to write 0 to stop the program?

And how to make that you don't have to write zero to stop?

You are viewing a single comment. View All

This is because C++ your main() function is returning an int value. This is an integer. It expects a return statement returning any integer value in order to properly execute the program. This is built in to C++

Please mark this as the answer if I answered your question :)