C++ Playground - Using ref to pass value from function: Online Interpreter, Compiler & Editor | Sololearn