Write GLUT / OpenGL 1.x C++, press Run. It compiles on the server and runs in your browser.
stdin (for cin/scanf)
cin
scanf