No global functions other than main
The C++ programs are written in such a way as to make them consistent with the other two programming languages.
In particular, they are written in such a way as to prohibit the use of global variables and global functions other than the main function.
(Unfortunately, it is impossible to eliminate the global main function in C++.)