Pagini recente » Cod sursa (job #1988540) | Borderou de evaluare (job #173313) | Borderou de evaluare (job #2012955) | Borderou de evaluare (job #485718) | Borderou de evaluare (job #1566138)
Borderou de evaluare (job #1566138)
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 |
1 | 0ms | 280kb | OK | 10 |
2 | 0ms | 284kb | Incorect | 0 |
3 | 0ms | 316kb | Incorect | 0 |
4 | 20ms | 524kb | Incorect | 0 |
5 | Depăşit | 2108kb | Time limit exceeded. | 0 |
6 | Depăşit | 3188kb | Time limit exceeded. | 0 |
7 | Depăşit | 3920kb | Time limit exceeded. | 0 |
8 | Depăşit | 4644kb | Time limit exceeded. | 0 |
9 | Depăşit | 4892kb | Time limit exceeded. | 0 |
10 | Depăşit | 5140kb | Time limit exceeded. | 0 |
Punctaj total | 10 |