c++ graphics online compiler
#include <iostream>
#include <graphics.h>
int main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, NULL);
// Your graphics code here
delay(5000); // Delay to show the graphics window for 5 seconds
closegraph();
return 0;
}