[Solved] C++ // Not all control paths return a value
[ad_1] Actually none of your control paths returns a value. As you only use the function to print something on the screen, it does not have to return anything. Just make the return type void: void bounce(int n) { /*…*/ } And then dont cout the result of the function call (once you make it … Read more