Question about vector C++
Bubbleboy228

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
KeaganLandfried

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 :)