mousetrap.cpp: In function 'void fix(ll&, ll&, ll&, ll&, ll&)':
mousetrap.cpp:31:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(one <= two && id < g[node].size() && g[node][id].first != 1){
~~~^~~~~~~~~~~~~~~~
mousetrap.cpp:37:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(id < g[node].size() && (g[node][id].first == -1 || g[node][id].second.second == prnt))
~~~^~~~~~~~~~~~~~~~
mousetrap.cpp: In function 'void dfs(ll, ll, ll&, ll&, ll)':
mousetrap.cpp:44:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(id < g[node].size()){
~~~^~~~~~~~~~~~~~~~
mousetrap.cpp:48:44: error: cannot bind non-const lvalue reference of type 'll& {aka long long int&}' to an rvalue of type 'll {aka long long int}'
dfs(g[node][id].second.second,node,one,2);
^
mousetrap.cpp:40:6: note: in passing argument 4 of 'void dfs(ll, ll, ll&, ll&, ll)'
void dfs(ll node,ll prnt,ll &one,ll &two,ll in){
^~~
mousetrap.cpp:54:44: error: cannot bind non-const lvalue reference of type 'll& {aka long long int&}' to an rvalue of type 'll {aka long long int}'
dfs(g[node][id].second.second,node,one,1);
^
mousetrap.cpp:40:6: note: in passing argument 4 of 'void dfs(ll, ll, ll&, ll&, ll)'
void dfs(ll node,ll prnt,ll &one,ll &two,ll in){
^~~
mousetrap.cpp: In function 'int main()':
mousetrap.cpp:61:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&n,&t,&m);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
mousetrap.cpp:64:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&u,&v);
~~~~~^~~~~~~~~~~~~~~~~~