Pagini recente » Borderou de evaluare (job #557560) | Borderou de evaluare (job #154046) | Cod sursa (job #2245413) | Cod sursa (job #2809222) | Borderou de evaluare (job #1574782)
Borderou de evaluare (job #1574782)
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 |
1 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 176kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 176kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 172kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 176kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 176kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |