race.cpp:8:11: error: redefinition of 'const int sz'
8 | const int sz = 2e5 + 5;
| ^~
race.cpp:4:11: note: 'const int sz' previously defined here
4 | const int sz = 2e5 + 5;
| ^~
race.cpp:9:32: error: redefinition of 'std::vector<std::vector<std::pair<int, int> > > adj'
9 | vector<vector<pair<int, int>>> adj(sz);
| ^~~
race.cpp:5:30: note: 'std::vector<std::vector<std::pair<int, int> > > adj' previously declared here
5 | vector<vector<pair<int,int>>>adj(sz);
| ^~~
race.cpp: In function 'int dij(int, int, int)':
race.cpp:45:12: warning: overflow in conversion from 'long long int' to 'int' changes value from '9223372036854775807' to '-1' [-Woverflow]
45 | return LLONG_MAX;
| ^~~~~~~~~
race.cpp: In function 'int best_path(int, int, int (*)[2], int*)':
race.cpp:58:15: warning: overflow in conversion from 'long long int' to 'int' changes value from '9223372036854775807' to '-1' [-Woverflow]
58 | int res = LLONG_MAX;
| ^~~~~~~~~