Borderou de evaluare (job #1531706)

Utilizator adi_ispas95FMI - Adrian Ispas adi_ispas95 Data 21 noiembrie 2015 14:20:19
Problema Por Costel și Trenul Status done
Runda FMI No Stress 6 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:34:43: warning: array subscript is above array bounds [-Warray-bounds] if(locuri[j][1] == 0) ^ user.cpp:42:39: warning: array subscript is above array bounds [-Warray-bounds] if(locuri[j][1] == 0) ^ user.cpp:43:41: warning: array subscript is above array bounds [-Warray-bounds] {locuri[j][1] = 1; out << 2 * j + 2 << "\n";} ^ user.cpp:55:60: warning: array subscript is above array bounds [-Warray-bounds] if(locuri[j][0] == 0 && locuri[j][1] == 0) ^ user.cpp:61:32: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][1] = 1; ^ user.cpp:77:60: warning: array subscript is above array bounds [-Warray-bounds] if(locuri[j][0] == 0 && locuri[j][1] == 0){ ^ user.cpp:79:59: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j - 1][0] = 1; ^ user.cpp:84:60: warning: array subscript is above array bounds [-Warray-bounds] if(j > 0 && locuri[j - 1][1] == 0){ ^ user.cpp:85:82: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j - 1][1] = 1; ^ user.cpp:85:63: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j - 1][1] = 1; ^ user.cpp:91:67: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j + 1][0] = 1; ^ user.cpp:96:72: warning: array subscript is above array bounds [-Warray-bounds] if(j < 49999 && locuri[j + 1][1] == 0){ ^ user.cpp:97:90: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j + 1][1] = 1; ^ user.cpp:97:71: warning: array subscript is above array bounds [-Warray-bounds] locuri[j][0] = locuri[j][1] = locuri[j + 1][1] = 1; ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbIncorect0
220ms432kbKilled by signal 11(SIGSEGV).0
316ms432kbKilled by signal 11(SIGSEGV).0
420ms432kbKilled by signal 11(SIGSEGV).0
520ms428kbKilled by signal 11(SIGSEGV).0
620ms432kbKilled by signal 11(SIGSEGV).0
716ms432kbKilled by signal 11(SIGSEGV).0
816ms432kbKilled by signal 11(SIGSEGV).0
932ms436kbKilled by signal 11(SIGSEGV).0
1016ms432kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?