Borderou de evaluare (job #1875498)

Utilizator valentinoMoldovan Rares valentino Data 11 februarie 2017 10:36:10
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:24: warning: array subscript is above array bounds [-Warray-bounds] d[2][j] = x + d[1][j]; ^ user.cpp:28:25: warning: array subscript is above array bounds [-Warray-bounds] nr[2][j] = nr[1][j] + nr[1][j-1]; ^ user.cpp:32:24: warning: array subscript is above array bounds [-Warray-bounds] d[2][j] = x + d[1][j]; ^ user.cpp:33:25: warning: array subscript is above array bounds [-Warray-bounds] nr[2][j] = nr[1][j]; ^ user.cpp:37:24: warning: array subscript is above array bounds [-Warray-bounds] d[2][j] = x + d[1][j - 1]; ^ user.cpp:38:25: warning: array subscript is above array bounds [-Warray-bounds] nr[2][j] = nr[1][j - 1]; ^ user.cpp:41:54: warning: array subscript is above array bounds [-Warray-bounds] for(int j = 1; j <= i; ++j) d[1][j] = d[2][j], nr[1][j] = nr[2][j]; ^ user.cpp:41:75: warning: array subscript is above array bounds [-Warray-bounds] for(int j = 1; j <= i; ++j) d[1][j] = d[2][j], nr[1][j] = nr[2][j]; ^ user.cpp:46:19: warning: array subscript is above array bounds [-Warray-bounds] if(d[2][i] > maxx) ^ user.cpp:49:27: warning: array subscript is above array bounds [-Warray-bounds] sol = nr[2][i]; ^ user.cpp:51:49: warning: array subscript is above array bounds [-Warray-bounds] else if(d[2][i] == maxx) sol += nr[2][i]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms412kbKilled by signal 11(SIGSEGV).0
20ms408kbKilled by signal 11(SIGSEGV).0
30ms412kbKilled by signal 11(SIGSEGV).0
40ms412kbKilled by signal 11(SIGSEGV).0
50ms424kbIncorect0
60ms420kbIncorect0
70ms428kbIncorect0
80ms428kbIncorect0
90ms424kbIncorect0
100ms432kbIncorect0
110ms424kbIncorect0
120ms424kbIncorect0
130ms424kbIncorect0
140ms424kbIncorect0
150ms428kbIncorect0
160ms428kbIncorect0
170ms424kbIncorect0
180ms428kbIncorect0
190ms428kbIncorect0
200ms428kbIncorect0
Punctaj total0

Ceva nu functioneaza?