NEED HELP WITH BELLMAN FORD ALGO

PLs help me with the BELLMAN FORD ALGORITHM ERROR IN MY CODE
(OUT OF BOUND ERROR) LINK-PHT2kj - Online C++ Compiler & Debugging Tool - Ideone.com

https://cses.fi/problemset/task/1671