harbingers.cpp: In function 'void dfs(int, int)':
harbingers.cpp:47:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for(int i = 0; i < g[u].size(); ++i){
| ~~^~~~~~~~~~~~~
harbingers.cpp: In function 'int main()':
harbingers.cpp:71:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
71 | for(int i = 1; i < n; ++i)
| ^~~
harbingers.cpp:72:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
72 | printf("%lld ", f[i]); puts("");
| ^~~~
harbingers.cpp:60:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
60 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
harbingers.cpp:62:23: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
62 | int u, v, w; scanf("%d%d%d", &u, &v, &w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
harbingers.cpp:69:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
69 | scanf("%d%d", s + i, v + i);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~