Borderou de evaluare (job #1574782)

Utilizator misu012Pop Mihai misu012 Data 20 ianuarie 2016 20:35:02
Problema Teams Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘quicksort’: user.c:23:9: warning: implicit declaration of function ‘partition’ [-Wimplicit-function-declaration] p = partition(s, l, h); ^ user.c: In function ‘main’: user.c:61:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&n); ^ user.c:62:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&a); ^ user.c:63:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&b); ^ user.c:65:6: warning: assignment from incompatible pointer type [enabled by default] s=(int*)malloc(n*sizeof(int)); ^ user.c:67:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&s[i]); ^ user.c:70:5: warning: passing argument 1 of ‘quicksort’ from incompatible pointer type [enabled by default] quicksort(s,0,n-1); ^ user.c:16:6: note: expected ‘int *’ but argument is of type ‘long int *’ void quicksort(int s[], int l, long h) ^ user.c:61:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:62:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&a); ^ user.c:63:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&b); ^ user.c:67:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&s[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms172kbKilled by signal 11(SIGSEGV).0
20ms172kbKilled by signal 11(SIGSEGV).0
30ms172kbKilled by signal 11(SIGSEGV).0
40ms172kbKilled by signal 11(SIGSEGV).0
50ms172kbKilled by signal 11(SIGSEGV).0
60ms176kbKilled by signal 11(SIGSEGV).0
70ms176kbKilled by signal 11(SIGSEGV).0
80ms172kbKilled by signal 11(SIGSEGV).0
90ms176kbKilled by signal 11(SIGSEGV).0
100ms176kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?