What does return -1 inside of a function that is in main?
Is there a difference between returning different numbers, i.e: "return -1", "return 7", "return 2"... ?
You are not using the return value of myFunction, so no, it does not matter in your case.
To actually get the return value, you'd have to assign it to a variable
1 2
int a = myFunction();
std::cout << a << std::endl;
or call it directly std::cout << myFunction() << std::endl;
When returning a value from main (0 in your case), the return value can be used by external programs for scripts or other tools (for example, %errorlevel% in Windows), but the value returned from main doesn't affect the logic of the program itself.