# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7636 |
2014-08-13T09:55:42 Z |
aaaa |
Robots (APIO13_robots) |
C |
|
0 ms |
0 KB |
#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
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]