Borderou de evaluare (job #3168948)

Utilizator AlexandruBenescuAlexandru Benescu AlexandruBenescu Data 13 noiembrie 2023 20:36:47
Problema Dragon Ball Z Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: In function 'int get_parent(int)', inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5: main.cpp:48:16: warning: array subscript -1 is below array bounds of 'MS [1505]' [-Warray-bounds] 48 | if (dist[node].prev_node == src) | ~~~~~~~~~^ main.cpp: In function 'int get_parent(int)': main.cpp:15:4: note: while referencing 'dist' 15 | MS dist[L]; | ^~~~ In function 'int get_parent(int)', inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5: main.cpp:52:19: warning: array subscript -1 is below array bounds of 'MS [1505]' [-Warray-bounds] 52 | return dist[node].prev_node = get_parent(dist[node].prev_node); | ~~~~~~~~~^ main.cpp: In function 'int get_parent(int)': main.cpp:15:4: note: while referencing 'dist' 15 | MS dist[L]; | ^~~~ In function 'int get_parent(int)', inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int main()' at main.cpp:75:33: main.cpp:48:16: warning: array subscript -1 is below array bounds of 'MS [1505]' [-Warray-bounds] 48 | if (dist[node].prev_node == src) | ~~~~~~~~~^ main.cpp: In function 'int main()': main.cpp:15:4: note: while referencing 'dist' 15 | MS dist[L]; | ^~~~ In function 'int get_parent(int)', inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int get_parent(int)' at main.cpp:52:43, inlined from 'int get_parent(int)' at main.cpp:47:5, inlined from 'int main()' at main.cpp:75:33: main.cpp:52:19: warning: array subscript -1 is below array bounds of 'MS [1505]' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms819kbIncorect0
2173ms6651kbIncorect0
369ms4698kbIncorect0
499ms5353kbIncorect0
5920ms8810kbIncorect0
61578ms10481kbIncorect0
71258ms10461kbIncorect0
81243ms10452kbIncorect0
91238ms10444kbIncorect0
101240ms10452kbIncorect0
Punctaj total0

Ceva nu functioneaza?