Pagini recente » Diferente pentru utilizator/radugheo intre reviziile 79 si 80 | Borderou de evaluare (job #2855275)
Borderou de evaluare (job #2855275)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:20:20: warning: array subscript 2 is above array bounds of 'int [2][5002]' [-Warray-bounds]
20 | dp[2][1][1]=a[2][1]+a[1][1];
| ~~~^
main.cpp:7:5: note: while referencing 'a'
7 | int a[2][5002];
| ^
main.cpp:20:9: warning: array subscript 2 is above array bounds of 'int [2][5002][12]' [-Warray-bounds]
20 | dp[2][1][1]=a[2][1]+a[1][1];
| ~~~~^
main.cpp:8:5: note: while referencing 'dp'
8 | int dp[2][5002][12];
| ^~
main.cpp:32:35: warning: array subscript 2 is above array bounds of 'int [2][5002][12]' [-Warray-bounds]
32 | maxim1=max(maxim1,dp[2][j-1][consec]);
| ~~~~^
main.cpp:35:20: warning: array subscript 2 is above array bounds of 'int [2][5002]' [-Warray-bounds]
35 | maxim1+=a[2][j];
| ~~~^
main.cpp:7:5: note: while referencing 'a'
7 | int a[2][5002];
| ^
main.cpp:38:13: warning: array subscript 2 is above array bounds of 'int [2][5002][12]' [-Warray-bounds]
38 | dp[2][j][1]=a[2][j]+maxim2;
| ~~~~^
main.cpp:8:5: note: while referencing 'dp'
8 | int dp[2][5002][12];
| ^~
main.cpp:43:29: warning: array subscript 2 is above array bounds of 'int [2][5002][12]' [-Warray-bounds]
43 | maxim=max(maxim,dp[2][n][consec]);
| ~~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Killed by Signal 11 | 0 |
2 | 2ms | 184kb | Killed by Signal 11 | 0 |
3 | 2ms | 184kb | Killed by Signal 11 | 0 |
4 | 2ms | 184kb | Killed by Signal 11 | 0 |
5 | 2ms | 184kb | Killed by Signal 11 | 0 |
6 | 2ms | 184kb | Killed by Signal 11 | 0 |
7 | 2ms | 184kb | Killed by Signal 11 | 0 |
8 | 2ms | 184kb | Killed by Signal 11 | 0 |
9 | 2ms | 184kb | Killed by Signal 11 | 0 |
10 | 2ms | 184kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |