i'm trying to make a simple program, i think, that shuts windows down after like 15 minutes or something, i have this code so far but my compiler gives me all sorts of errors that i don't know how to fix, here is the code:
#include <iostream.h>
#include <windows.h>
int main()
{
int timer;
cout<<"Enter 15 to turn off your computer in 15 minutes.";
cin>>timer;

if (timer==15)
{

int time=15; /*minutes*/

while(1)
{

if(condition_4_termination) break;

ExitWindowsEx();

sleep(time*60);
}

}