postmen.cpp: In function 'int dfs(int)':
postmen.cpp:11:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ix[cur] < g[cur].size()) {
~~~~~~~~^~~~~~~~~~~~~~~
postmen.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
postmen.cpp: In function 'void print(std::vector<int>&, int)':
postmen.cpp:22:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos < v.size()) printf("%d ", v[pos++]);
~~~~^~~~~~~~~~
postmen.cpp: In function 'void copy(std::vector<int>&, int, std::vector<std::vector<int> >&)':
postmen.cpp:32:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos < v.size()) result.back().push_back(v[pos++]);
~~~~^~~~~~~~~~
postmen.cpp: In function 'std::vector<std::vector<int> > solve(int, int)':
postmen.cpp:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = start; i < v.size(); i++) {
~~^~~~~~~~~~
postmen.cpp:50:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = pos; i < stk.size(); i++) in[stk[i]].pop_back();
~~^~~~~~~~~~~~
postmen.cpp: In function 'int main()':
postmen.cpp:65:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
postmen.cpp:68:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~