dreaming.cpp: In function 'void dfs0(int)':
dreaming.cpp:13:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for (int i = 0; i < g[beg].size(); ++ i)
| ~~^~~~~~~~~~~~~~~
dreaming.cpp: In function 'int dfs(int)':
dreaming.cpp:26:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 0; i < g[beg].size(); ++ i)
| ~~^~~~~~~~~~~~~~~
dreaming.cpp: At global scope:
dreaming.cpp:34:51: error: expected ',' or '...' before 'int'
34 | int travelTime(int N,int M, int L, int A[],int B[]int T[])
| ^~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*)':
dreaming.cpp:38:43: error: 'T' was not declared in this scope
38 | g[A[i]].push_back(make_pair(B[i], T[i]);
| ^
dreaming.cpp:44:20: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+17' to '2147483647' [-Woverflow]
44 | int mindist1 = 1e17, mindist2 = 1e17;
| ^~~~
dreaming.cpp:44:37: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+17' to '2147483647' [-Woverflow]
44 | int mindist1 = 1e17, mindist2 = 1e17;
| ^~~~
dreaming.cpp:47:26: error: 'n' was not declared in this scope
47 | for (int i = 1; i <= n; ++ i)
| ^
dreaming.cpp:49:12: error: 'marked' was not declared in this scope; did you mean 'marked0'?
49 | if(marked[i])
| ^~~~~~
| marked0
dreaming.cpp:71:43: error: 'l' was not declared in this scope
71 | g[index1].push_back(make_pair(index2, l));
| ^
dreaming.cpp:74:26: error: 'n' was not declared in this scope
74 | for (int i = 1; i <= n; ++ i)
| ^
dreaming.cpp:43:9: warning: unused variable 'marked1' [-Wunused-variable]
43 | int marked1 = 0, marked0 = 0;
| ^~~~~~~
dreaming.cpp:43:22: warning: unused variable 'marked0' [-Wunused-variable]
43 | int marked1 = 0, marked0 = 0;
| ^~~~~~~
dreaming.cpp:80:1: warning: no return statement in function returning non-void [-Wreturn-type]
80 | }
| ^