C++14: compute then print head line
C++: rename to C++
Go version; thanks to 小白