traffic.cpp: In function 'long long int dfs(int, int)':
traffic.cpp:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i = 0 ; i < g[nodo].size(); ++i){
| ~~^~~~~~~~~~~~~~~~
traffic.cpp: In function 'int LocateCentre(int, int*, int*, int*)':
traffic.cpp:29:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int i = 0; i < g[0].size(); ++i){
| ~~^~~~~~~~~~~~~
traffic.cpp:39:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i = 0; i < g[aux].size(); ++i){
| ~~^~~~~~~~~~~~~~~
traffic.cpp: In function 'int main()':
traffic.cpp:70:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
70 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
traffic.cpp:71:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
71 | for (i=0;i<N;i++) scanf("%d",&P[i]);
| ~~~~~^~~~~~~~~~~~
traffic.cpp:72:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
72 | for (i=0;i<N-1;i++) scanf("%d%d",&S[i],&D[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
/tmp/ccFob3El.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccOCnJGn.o:traffic.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status