Don't ask how but 5 works using c++