https://www.codewithc.com/how-to-setup-opengl-glut-in-codeblocks/
Please follow the above link to download the important libraries/header files for the project after downloading and setting up Codeblocks.
After this step, you can just copy paste the code. Ensure that you add Dot header file, Dot.cpp & main.cpp in the project and link it. Run the main.cpp file.
Do follow the steps correctly and thank me later :)