Borderou de evaluare (job #1530388)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 21 noiembrie 2015 12:15:24
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:24:28: warning: statement has no effect [-Wunused-value] a[j][k]==1; ^ user.cpp:36:28: warning: statement has no effect [-Wunused-value] a[j][1]==1;a[j][2]=1; ^ user.cpp:49:28: warning: statement has no effect [-Wunused-value] a[j][1]==1;a[j][2]=1; ^ user.cpp:13:22: warning: array subscript is above array bounds [-Warray-bounds] a[0][1]=-1;a[0][2]=-1; ^ user.cpp:14:30: warning: array subscript is above array bounds [-Warray-bounds] a[n/2+1][1]=-1;a[n/2+1][2]=-1; ^ user.cpp:35:36: warning: array subscript is above array bounds [-Warray-bounds] if (a[j][1]==0 &&a[j][2]==0) { ^ user.cpp:36:38: warning: array subscript is above array bounds [-Warray-bounds] a[j][1]==1;a[j][2]=1; ^ user.cpp:48:36: warning: array subscript is above array bounds [-Warray-bounds] if (a[j][1]==0 &&a[j][2]==0 &&(a[j+1][1]==0 ||a[j+1][2]==0 ||a[j-1][1]==0 ||a[j-1][2]==0)) { ^ user.cpp:48:67: warning: array subscript is above array bounds [-Warray-bounds] if (a[j][1]==0 &&a[j][2]==0 &&(a[j+1][1]==0 ||a[j+1][2]==0 ||a[j-1][1]==0 ||a[j-1][2]==0)) { ^ user.cpp:48:97: warning: array subscript is above array bounds [-Warray-bounds] if (a[j][1]==0 &&a[j][2]==0 &&(a[j+1][1]==0 ||a[j+1][2]==0 ||a[j-1][1]==0 ||a[j-1][2]==0)) { ^ user.cpp:49:38: warning: array subscript is above array bounds [-Warray-bounds] a[j][1]==1;a[j][2]=1; ^ user.cpp:55:34: warning: array subscript is above array bounds [-Warray-bounds] if (a[j-1][2]==0) { ^ user.cpp:56:29: warning: array subscript is above array bounds [-Warray-bounds] a[j-1][2]=1; ^ user.cpp:65:34: warning: array subscript is above array bounds [-Warray-bounds] if (a[j+1][2]==0) { ^ user.cpp:66:29: warning: array subscript is above array bounds [-Warray-bounds] a[j+1][2]=1; ^ user.cpp:23:23: warning: array subscript is above array bounds [-Warray-bounds] if (a[j][k]==0) { ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbIncorect0
212ms480kbIncorect0
3260ms516kbIncorect0
4Depăşit492kbTime limit exceeded.0
5Depăşit496kbTime limit exceeded.0
6Depăşit500kbTime limit exceeded.0
7Depăşit484kbTime limit exceeded.0
8Depăşit492kbTime limit exceeded.0
9Depăşit504kbTime limit exceeded.0
10Depăşit496kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?