Borderou de evaluare (job #2843692)

Utilizator stefanvoicaVoica Stefan stefanvoica Data 2 februarie 2022 19:42:12
Problema Arbvalmax Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void dfs1(long long int, long long int)': main.cpp:26:22: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 26 | bestson[2][x]=y, maxi=v[y]; | ~~~~~~~~~^ main.cpp:7:20: note: while referencing 'bestson' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~~~~~~ main.cpp: In function 'void dfs2(long long int, long long int)': main.cpp:46:49: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 46 | dp[1][y] = max(dp[1][y], v[bestson[2][x]]); | ~~~~~~~~~^ main.cpp:7:20: note: while referencing 'bestson' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~~~~~~ main.cpp:49:28: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 49 | dp[2][y] = max(dp[2][x], v[x]); | ~~~~^ main.cpp:49:13: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 49 | dp[2][y] = max(dp[2][x], v[x]); | ~~~~^ main.cpp:7:8: note: while referencing 'dp' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~ main.cpp:52:21: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 52 | else dp[2][y] = max(dp[2][y], v[bestson[1][x]]); | ~~~~^ main.cpp:7:8: note: while referencing 'dp' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~ main.cpp:51:49: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 51 | dp[2][y] = max(dp[2][y], v[bestson[2][x]]); | ~~~~~~~~~^ main.cpp:7:20: note: while referencing 'bestson' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~~~~~~ main.cpp:51:17: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 51 | dp[2][y] = max(dp[2][y], v[bestson[2][x]]); | ~~~~^ main.cpp:7:8: note: while referencing 'dp' 7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim]; | ^~ main.cpp: In function 'int32_t main()': main.cpp:78:50: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds] 78 | fout << max(maxsub[y], max(dp[1][y], dp[2][x])) << '\n'; | ~~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms11108kbKilled by Signal 110
211ms11022kbKilled by Signal 110
311ms11022kbKilled by Signal 110
410ms11022kbKilled by Signal 110
529ms16203kbKilled by Signal 110
6109ms22433kbKilled by Signal 110
7159ms24907kbKilled by Signal 110
8264ms32366kbKilled by Signal 110
9284ms33472kbKilled by Signal 110
10305ms34725kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?