Borderou de evaluare (job #2978038)

Utilizator LucaT2Tasadan Luca LucaT2 Data 12 februarie 2023 20:17:23
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'void rezolvare()': main.cpp:39:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 39 | dp[2][j]=dp[1][j]+a[i][j]; | ~~~~^ main.cpp:9:29: note: while referencing 'dp' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:40:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 40 | nr[2][j]=nr[1][j]+nr[1][j-1]; | ~~~~^ main.cpp:9:41: note: while referencing 'nr' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:34:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 34 | dp[2][j]=dp[1][j-1]+a[i][j]; | ~~~~^ main.cpp:9:29: note: while referencing 'dp' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:35:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 35 | nr[2][j]=nr[1][j-1]; | ~~~~^ main.cpp:9:41: note: while referencing 'nr' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:29:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 29 | dp[2][j]=dp[1][j]+a[i][j]; | ~~~~^ main.cpp:9:29: note: while referencing 'dp' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:30:21: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 30 | nr[2][j]=nr[1][j]; | ~~~~^ main.cpp:9:41: note: while referencing 'nr' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:44:26: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 44 | dp[1][j]=dp[2][j]; | ~~~~^ main.cpp:9:29: note: while referencing 'dp' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:45:26: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds] 45 | nr[1][j]=nr[2][j]; | ~~~~^ main.cpp:9:41: note: while referencing 'nr' 9 | int n,st,dr,c,a[2005][2005],dp[2][2005],nr[2][2005]; | ^~ main.cpp:54:20: warning: array subscript 2 is above array bounds of 'int [2][2005]' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbOK5
238ms5591kbOK5
380ms8704kbOK5
4119ms11976kbOK5
50ms184kbIncorect0
60ms184kbIncorect0
70ms184kbIncorect0
80ms184kbIncorect0
97ms2543kbIncorect0
1018ms3801kbIncorect0
1132ms5414kbIncorect0
1242ms6328kbIncorect0
1344ms6348kbIncorect0
1445ms6434kbIncorect0
1555ms7163kbIncorect0
1662ms7987kbIncorect0
1773ms8740kbIncorect0
18102ms10432kbIncorect0
19118ms11128kbIncorect0
20132ms11952kbIncorect0
Punctaj total20

Ceva nu functioneaza?