Borderou de evaluare (job #1464586)

Utilizator om6gaLungu Adrian om6ga Data 23 iulie 2015 22:40:15
Problema Suma2 Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:21:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d\n", &n); ^ user.c:30:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &nr); ^ user.c:40:14: warning: array subscript is above array bounds [-Warray-bounds] b[3] = b[1] + nr; ^ user.c:45:17: warning: array subscript is above array bounds [-Warray-bounds] b[2] = b[3]; ^ user.c:46:10: warning: array subscript is above array bounds [-Warray-bounds] b[3] = b[1] + nr > b[2] ? b[1] + nr : b[2]; ^ user.c:53:16: warning: array subscript is above array bounds [-Warray-bounds] fprintf(out, "%d\n", b[3]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms272kbOK10
2Depăşit240kbTime limit exceeded.0
30ms268kbIncorect0
40ms264kbIncorect0
50ms268kbIncorect0
60ms260kbIncorect0
7Depăşit236kbTime limit exceeded.0
8Depăşit232kbTime limit exceeded.0
9Depăşit244kbTime limit exceeded.0
100ms264kbIncorect0
Punctaj total10

Ceva nu functioneaza?