Could someone make a 3D sphere or tetrahedron for me in C++ OpenGL?

I just figured out how to setup OpenGL for C++ visual studio.

Spheres and tetrahedrons are my favorite shapes.

But I was trying to use ChatGPT to generate a sphere and tetrahedron but the code would either be in 2D or it would have a error.

I’m not sure if the problem is the ChatGPT generated code, or if I setup OpenGL wrong.