Borderou de evaluare (job #2219996)

Utilizator racheriunicolaechowchow racheriunicolae Data 10 iulie 2018 12:23:42
Problema Joc13 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:26: warning: array subscript is above array bounds [-Warray-bounds] D[2][1]={A[1][1]+ A[2][1],1}; ~~~^ user.cpp:22:29: warning: array subscript is above array bounds [-Warray-bounds] if(D[1][i-1].F > D[2][i-1].F+A[2][i] and step<k)D[1][i] = {D[1][i-1].F + A[1][i], step+1}; ~~~^ user.cpp:22:41: warning: array subscript is above array bounds [-Warray-bounds] if(D[1][i-1].F > D[2][i-1].F+A[2][i] and step<k)D[1][i] = {D[1][i-1].F + A[1][i], step+1}; ~~~^ user.cpp:25:19: warning: array subscript is above array bounds [-Warray-bounds] step = D[2][i-1].S; ~~~^ user.cpp:26:15: warning: array subscript is above array bounds [-Warray-bounds] if(D[2][i-1].F > D[1][i-1].F+A[1][i] and step<k)D[2][i] = {D[2][i-1].F + A[2][i], step+1}; ~~~^ user.cpp:26:85: warning: array subscript is above array bounds [-Warray-bounds] if(D[2][i-1].F > D[1][i-1].F+A[1][i] and step<k)D[2][i] = {D[2][i-1].F + A[2][i], step+1}; ~~~^ user.cpp:27:56: warning: array subscript is above array bounds [-Warray-bounds] else D[2][i] = {D[1][i-1].F + A[1][i] + A[2][i], 1}; ~~~^ user.cpp:29:14: warning: array subscript is above array bounds [-Warray-bounds] fout<<D[2][n].F; ~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1336kbIncorect0
20ms1332kbIncorect0
30ms1340kbIncorect0
40ms1336kbIncorect0
50ms1332kbIncorect0
60ms1344kbIncorect0
70ms1352kbIncorect0
84ms1680kbIncorect0
90ms1344kbKilled by signal 11(SIGSEGV).0
104ms1688kbIncorect0
Punctaj total0

Ceva nu functioneaza?