Borderou de evaluare (job #2072624)

Utilizator Consti.001FMI Dranca Constantin Consti.001 Data 21 noiembrie 2017 23:37:48
Problema A+B Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:33:2: warning: excess elements in scalar initializer [enabled by default] const char *argv={"/bin/ls","-1",NULL}; ^ user.c:33:2: warning: (near initialization for ‘argv’) [enabled by default] user.c:33:2: warning: excess elements in scalar initializer [enabled by default] user.c:33:2: warning: (near initialization for ‘argv’) [enabled by default] user.c:34:3: warning: passing argument 2 of ‘execve’ from incompatible pointer type [enabled by default] execve("/bin/ls",argv,evp); ^ In file included from user.c:3:0: /usr/include/unistd.h:552:12: note: expected ‘char * const*’ but argument is of type ‘const char *’ extern int execve (__const char *__path, char *__const __argv[], ^ user.c:34:3: warning: passing argument 3 of ‘execve’ from incompatible pointer type [enabled by default] execve("/bin/ls",argv,evp); ^ In file included from user.c:3:0: /usr/include/unistd.h:552:12: note: expected ‘char * const*’ but argument is of type ‘const char *’ extern int execve (__const char *__path, char *__const __argv[], ^ user.c:16:6: warning: unused variable ‘n’ [-Wunused-variable] int n; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
70ms164kbBlocked system call: clone.00
80ms164kbBlocked system call: clone.0
90ms164kbBlocked system call: clone.0
100ms164kbBlocked system call: clone.0
10ms164kbBlocked system call: clone.00
20ms160kbBlocked system call: clone.0
30ms160kbBlocked system call: clone.0
40ms160kbBlocked system call: clone.00
50ms164kbBlocked system call: clone.0
60ms164kbBlocked system call: clone.0
Punctaj total0

Ceva nu functioneaza?