This is C++ code. C does not have default parameters, pass by reference, or a header called "cstdlib".