Borderou de evaluare (job #1809428)

Utilizator gorneanu.andreiFMI Gorneanu Andrei gorneanu.andrei Data 18 noiembrie 2016 22:28:23
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.c: In function ‘sort’: user.c:37:101: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] while((heap[i] < heap[2 * i] && i <= n / 2) || (heap[i] < heap[2 * i + 1] && 2 * i + 1 <=n) && i <= n / 2){ ^ user.c: In function ‘heapify’: user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:11:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&heap[1]); ^ user.c:14:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&heap[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms264kbOK520
20ms268kbOK5
30ms268kbOK5
40ms268kbOK5
50ms264kbOK520
60ms268kbOK5
70ms272kbOK5
80ms264kbOK5
980ms656kbOK520
1076ms652kbOK5
1168ms656kbOK5
1276ms656kbOK5
13324ms1632kbOK520
14272ms1628kbOK5
15256ms1628kbOK5
16272ms1628kbOK5
17168ms2204kbKilled by signal 11(SIGSEGV).00
18188ms2196kbKilled by signal 11(SIGSEGV).0
19148ms2196kbKilled by signal 11(SIGSEGV).0
20168ms2196kbKilled by signal 11(SIGSEGV).0
Punctaj total80

Ceva nu functioneaza?