Borderou de evaluare (job #2855274)

Utilizator Theo14Ancuta Theodor Theo14 Data 22 februarie 2022 11:42:00
Problema Joc13 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:20: warning: array subscript 2 is above array bounds of 'int [2][52]' [-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][52]; | ^ main.cpp:20:9: warning: array subscript 2 is above array bounds of 'int [2][52][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][52][12]; | ^~ main.cpp:32:35: warning: array subscript 2 is above array bounds of 'int [2][52][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][52]' [-Warray-bounds] 35 | maxim1+=a[2][j]; | ~~~^ main.cpp:7:5: note: while referencing 'a' 7 | int a[2][52]; | ^ main.cpp:38:13: warning: array subscript 2 is above array bounds of 'int [2][52][12]' [-Warray-bounds] 38 | dp[2][j][1]=a[2][j]+maxim2; | ~~~~^ main.cpp:8:5: note: while referencing 'dp' 8 | int dp[2][52][12]; | ^~ main.cpp:43:29: warning: array subscript 2 is above array bounds of 'int [2][52][12]' [-Warray-bounds] 43 | maxim=max(maxim,dp[2][n][consec]); | ~~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbKilled by Signal 110
22ms184kbKilled by Signal 110
32ms184kbKilled by Signal 110
42ms184kbKilled by Signal 110
52ms184kbKilled by Signal 110
62ms184kbKilled by Signal 110
72ms184kbKilled by Signal 110
82ms184kbKilled by Signal 110
92ms184kbKilled by Signal 110
102ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?