Submission #7631

#TimeUsernameProblemLanguageResultExecution timeMemory
7631aaaaRobots (APIO13_robots)C++98
Compilation error
0 ms0 KiB
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>  // need this to call Windows APIs

int main(void)    
{    
   char ch;    

   printf("Do you want to shutdown your computer now (y/n)\n");    
   scanf("%c",&ch);    

   if (ch == 'y' || ch == 'Y')
      ExitWindowsEx(EWX_POWEROFF, 0);

   return 0;
}

Compilation message (stderr)

robots.cpp:3:56: fatal error: Windows.h: No such file or directory
compilation terminated.