Borderou de evaluare (job #756772)

Utilizator avatar seby-the-kydo Nerdvana 8 Georgescu Sebastian seby-the-kydo IP ascuns
Problemă Acoperire Compilator c-32
Rundă Tema 16 clasa a 7-a Status evaluat
Dată 21 ian. 2024 20:56:03 Scor 100

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