Pagini recente »
Borderou de evaluare (job #770815)
Borderou de evaluare (job #770815)
Raport evaluator
Compilare:
main.c: In function 'cmp':
main.c:13:12: warning: unused variable 'nc' [-Wunused-variable]
13 | cutie *nc=(cutie*)c;
| ^~
main.c: In function 'main':
main.c:63:31: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
63 | qsort(v,cnt,sizeof(cutie),cmp);
| ^~~
| |
| int (*)(const void *, const void *, const void *)
In file included from main.c:2:
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const void *, const void *, const void *)'
971 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
main.c:40:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:43:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | fscanf(fin, "%d%d%d", &x, &y, &z);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
OK
|
10
|
2
|
1 ms
|
245 kb
|
OK
|
10
|
3
|
1 ms
|
245 kb
|
OK
|
10
|
4
|
1 ms
|
249 kb
|
OK
|
10
|
5
|
9 ms
|
266 kb
|
OK
|
10
|
6
|
19 ms
|
249 kb
|
OK
|
10
|
7
|
49 ms
|
270 kb
|
OK
|
10
|
8
|
69 ms
|
512 kb
|
OK
|
10
|
9
|
99 ms
|
507 kb
|
OK
|
10
|
10
|
89 ms
|
512 kb
|
OK
|
10
|
Punctaj total
|
100
|