Borderou de evaluare (job #1603134)

Utilizator robert.stefanRobert Stefan robert.stefan Data 17 februarie 2016 11:09:26
Problema Cautare binara Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘read’: user.c:11:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &k), *n = k; ^ user.c:14:15: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &v[i]); ^ user.c:16:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &k), *t = k; ^ user.c: In function ‘main’: user.c:79:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen (IN, "r", stdin); ^ user.c:80:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen (OUT, "w", stdout); ^ user.c:87:15: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &k, &x); ^ user.c: In function ‘binSearch1’: user.c:56:5: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] return pos + 1; ^ user.c: In function ‘binSearch2’: user.c:75:5: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] return pos + 1; ^ user.c: In function ‘main’: user.c:75:5: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] user.c:60:29: note: ‘pos’ was declared here int right, left, midle, pos; ^ user.c:56:5: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] return pos + 1; ^ user.c:41:29: note: ‘pos’ was declared here int right, left, midle, pos; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms292kbOK1010
20ms284kbOK1010
30ms280kbOK1010
44ms288kbOK1010
524ms324kbOK1020
680ms476kbOK10
7116ms668kbOK1040
8124ms672kbOK10
9124ms668kbOK10
10124ms672kbOK10
Punctaj total100

Ceva nu functioneaza?