Borderou de evaluare (job #3284856)

Utilizator Barbu_MateiBarbu Matei Barbu_Matei Data 12 martie 2025 11:37:01
Problema Mvc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void dfs(int)': main.cpp:12:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 12 | for (int i = 0; i < v[node].size(); ++i) { | ~~^~~~~~~~~~~~~~~~ main.cpp:11:15: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 11 | dp[node][1] = cost[node]; | ~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~ main.cpp:15:44: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 15 | dp[node][0] += dp[v[node][i]][1]; | ~~~~~~~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~ main.cpp:16:48: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 16 | dp[node][1] += min(dp[v[node][i]][1], dp[v[node][i]][0]); | ~~~~~~~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~ main.cpp:16:23: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 16 | dp[node][1] += min(dp[v[node][i]][1], dp[v[node][i]][0]); | ~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~ main.cpp:16:23: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 16 | dp[node][1] += min(dp[v[node][i]][1], dp[v[node][i]][0]); | ~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~ main.cpp: In function 'int main()': main.cpp:42:40: warning: array subscript 1 is above array bounds of 'int [1]' [-Warray-bounds] 42 | cout << min(dp[root][0], dp[root][1]); | ~~~~~~~~~~^ main.cpp:5:19: note: while referencing 'dp' 5 | int cost[100001], dp[100001][1]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
31ms303kbIncorect0
41ms303kbIncorect0
52ms1081kbIncorect0
64ms2129kbIncorect0
714ms5681kbIncorect0
829ms10711kbIncorect0
929ms14872kbIncorect0
1024ms6901kbIncorect0
Punctaj total0

Ceva nu functioneaza?