currencies.cpp: In function 'void dfs(int)':
currencies.cpp:37:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
37 | for(auto to : v[n])
| ^~~
currencies.cpp:40:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
40 | us1[n] = ++timer;
| ^~~
currencies.cpp: In function 'void solve()':
currencies.cpp:72:16: warning: variable 'j' set but not used [-Wunused-but-set-variable]
72 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
currencies.cpp:72:32: warning: unused variable 's' [-Wunused-variable]
72 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
currencies.cpp:72:63: warning: unused variable 'mn' [-Wunused-variable]
72 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^~
currencies.cpp:72:76: warning: unused variable 'mx' [-Wunused-variable]
72 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^~
currencies.cpp: In function 'void dfs(int)':
currencies.cpp:36:17: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]
36 | p[n][i] = p[p[n][i - 1]][i - 1];
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
currencies.cpp:35:18: note: within this loop
35 | for(i = 1; i <= 20; i++)
| ~~^~~~~