Submission #7636

#TimeUsernameProblemLanguageResultExecution timeMemory
7636aaaaRobots (APIO13_robots)C11
Compilation error
0 ms0 KiB
#define SUDO "/usr/bin/sudo" int main(void) { char *arg0;//this should be actual command itself char *arg1,*arg2,*arg3,*arg4; arg0 = "sudo"; arg1 = "shutdown"; arg2 = "-h"; arg3 = "01:30"; arg4 = (char *)NULL; excel(SUDO,arg0,arg1,arg2,arg3,arg4); sleep(60*60); return 0; }

Compilation message (stderr)

robots.c: In function 'main':
robots.c:10:16: error: 'NULL' undeclared (first use in this function)
robots.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
robots.c:11:1: warning: implicit declaration of function 'excel' [-Wimplicit-function-declaration]
robots.c:12:1: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]