foo.cc: In function 'int dfs(int)':
foo.cc:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < infect[k].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~
foo.cc:31:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int j = 0; j < infect[k].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:49:7: warning: variable 'exist' set but not used [-Wunused-but-set-variable]
49 | bool exist[301] = { 0 };
| ^~~~~
foo.cc:48:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%d%d", &n, &p);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:53:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
53 | scanf("%d%d", &f, &c);
| ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务