toy.cpp: In function 'void backt(int, int, int)':
toy.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i = 0; i < div1.size(); i++) {
| ~~^~~~~~~~~~~~~
toy.cpp: In function 'int main()':
toy.cpp:37:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::set<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
37 | printf("%d\n", resp.size());
| ~^ ~~~~~~~~~~~
| | |
| int std::set<int>::size_type {aka long unsigned int}
| %ld
toy.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~