foo.cc: In function 'int countFor(std::vector<int>&, std::vector<bool>&, int)':
foo.cc:11:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | while (read < nums.size())
| ~~~~~^~~~~~~~~~~~~
foo.cc:14:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | while (!dp[read] && read < nums.size())
| ~~~~~^~~~~~~~~~~~~
foo.cc:19:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if (read == nums.size())
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务