dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:65:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(int j=0; j<graph[x].size(); j++)
| ~^~~~~~~~~~~~~~~~
dreaming.cpp: In function 'int FindEnd(int, int)':
dreaming.cpp:29:17: warning: 'max_dist' may be used uninitialized in this function [-Wmaybe-uninitialized]
29 | if(max_dist<dist[newidx])
| ^~
dreaming.cpp:37:12: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
37 | return index;
| ^~~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:88:12: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
88 | return ans;
| ^~~
/usr/bin/ld: /tmp/ccQfM5dv.o: in function `main':
grader.c:(.text.startup+0xd1): undefined reference to `travelTime'
collect2: error: ld returned 1 exit status