You can't draw using c++, graphics header files are deprecated (removed) in the new standard of c++.c++ was designed for console applications. If you want to draw use Qt or Microsoft Visual C++. Btw, i suggest Java if you're a graphics geek!
[Warning! Sololearn playground saves everyone's code in their database, so don't write your favourite expensive code in Sololearn playground] ~Reverse Engineering