toll.cpp: In function 'void djk(long long int, long long int)':
toll.cpp:22:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int i = 0 ; i < edges[u].size() ; i++)
| ~~^~~~~~~~~~~~~~~~~
toll.cpp:19:9: warning: unused variable 'c' [-Wunused-variable]
19 | int c = -pq.top().first , u = pq.top().second;
| ^
toll.cpp: In function 'int32_t main()':
toll.cpp:36:45: warning: iteration 50001 invokes undefined behavior [-Waggressive-loop-optimizations]
36 | for(int i = 0 ; i <= 50001 ; i ++) pref[i]=-1e15;
| ~~~~~~~^~~~~~
toll.cpp:36:21: note: within this loop
36 | for(int i = 0 ; i <= 50001 ; i ++) pref[i]=-1e15;
| ~~^~~~~~~~
toll.cpp:45:12: warning: iteration 50000 invokes undefined behavior [-Waggressive-loop-optimizations]
45 | pref[i]+=pref[i-1];
| ~~~~~~~^~~~~~~~~~~
toll.cpp:43:22: note: within this loop
43 | for(int i = 1 ; i <= 50001 ; i++)
| ~~^~~~~~~~