Pagini recente »
Clasament 2021-11-10-clasa-5-tema-14
|
Clasament c8_6
|
Borderou de evaluare (job #750492)
|
Borderou de evaluare (job #341520)
|
Borderou de evaluare (job #756772)
Borderou de evaluare (job #756772)
Raport evaluator
Compilare:
main.c:14:16: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
14 | int cmp(const *a, const *b) {
| ^
main.c:14:26: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
14 | int cmp(const *a, const *b) {
| ^
main.c: In function 'main':
main.c:29:36: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
29 | qsort(v, n, sizeof(intervale), cmp);
| ^~~
| |
| int (*)(const int *, const int *)
In file included from main.c:2:
/usr/include/stdlib.h:852:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const int *, const int *)'
852 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
main.c:35:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
35 | if(v[i].end > maxe)
| ^~
main.c:37:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | i++;
| ^
main.c:26:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | fscanf(fin, "%d%d%d", &a, &b, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:28:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf(fin, "%d%d", &v[i].start, &v[i].end);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
|
245 kb
|
OK
|
10
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
6
|
1 ms
|
245 kb
|
OK
|
10
|
7
|
1 ms
|
245 kb
|
OK
|
10
|
8
|
1 ms
|
245 kb
|
OK
|
10
|
9
|
1 ms
|
245 kb
|
OK
|
10
|
10
|
1 ms
|
245 kb
|
OK
|
10
|
Punctaj total
|
100
|