Borderou de evaluare (job #1566138)

Utilizator filote_cosminFilote Cosmin Catalin filote_cosmin Data 11 ianuarie 2016 20:09:52
Problema Beri Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:14:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d",&k); ^ user.c:15:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d",&q); ^ user.c:16:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d",&x); ^ user.c:17:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d",&y); ^ user.c:18:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in,"%d",&z); ^ user.c:28:1: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [enabled by default] qsort(c,n,sizeof(long),cmpfunc); ^ In file included from user.c:2:0: /usr/include/stdlib.h:761:13: note: expected ‘__compar_fn_t’ but argument is of type ‘long int (*)(const void *, const void *)’ extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ user.c:13:24: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] long n,k,q,x,y,z;fscanf(in,"%ld",&n); ^ user.c:14:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&k); ^ user.c:15:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&q); ^ user.c:16:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&x); ^ user.c:17:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&y); ^ user.c:18:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&z); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms284kbIncorect0
30ms316kbIncorect0
420ms524kbIncorect0
5Depăşit2108kbTime limit exceeded.0
6Depăşit3188kbTime limit exceeded.0
7Depăşit3920kbTime limit exceeded.0
8Depăşit4644kbTime limit exceeded.0
9Depăşit4892kbTime limit exceeded.0
10Depăşit5140kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?