C++ block copy-paste problem

I put the code here