Borderou de evaluare (job #2035539)

Utilizator tudormaximTudor Maxim tudormaxim Data 9 octombrie 2017 16:46:26
Problema Cautare binara Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:39:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ user.c:41:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &V[i]); ^ user.c:43:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &m); ^ user.c:45:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &type, &x); ^ user.c: In function ‘Upper_bound’: user.c:18:2: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] return pos; ^ user.c: In function ‘Lower_bound’: user.c:32:2: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] return pos; ^ user.c: In function ‘main’: user.c:58:11: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(fout, "%d\n", pos + 1); ^ user.c:55:11: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(fout, "%d\n", pos + 1); ^ user.c:48:9: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (V[pos] != x) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms272kbOK1010
20ms268kbOK1010
30ms280kbOK1010
44ms272kbOK1010
520ms308kbOK1020
676ms468kbOK10
7116ms664kbOK1040
8120ms656kbOK10
9120ms664kbOK10
10120ms664kbOK10
Punctaj total100

Ceva nu functioneaza?