In this C++ program the function print_nums doesn\'t accept
the vector numbers as an actual prameter when called in the switch
The line using namespace std says that you include std namespace. By including this you are including a lot of functions and variables in this namespace.
When you use any variables, if a variable with the same name exists in namespace std it will be tied up to it. Now by declaring another variable in your code the compiler is confused which one the coder is referring to.
Try to use more meaningful names for your variables max_num and min_num.
If you still want to use max and min, declare them in a user defined namespace and refer to them in your code.