doll.cpp: In function 'void ans2wer(std::vector<int>, std::vector<int>, std::vector<int>)':
doll.cpp:24:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
24 | for(auto e : a)cout << e << " ";cout << endl;
| ^~~
doll.cpp:24:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
24 | for(auto e : a)cout << e << " ";cout << endl;
| ^~~~
doll.cpp:5:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define FOR(i,n) for(int i = 0;i<n;i++)
......
25 | FOR(i,b.size()){
| ~~~~~~~~~~
doll.cpp:25:2: note: in expansion of macro 'FOR'
25 | FOR(i,b.size()){
| ^~~
doll.cpp: In function 'int solve(std::vector<int>)':
doll.cpp:5:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define FOR(i,n) for(int i = 0;i<n;i++)
......
33 | FOR(i,nums.size()){
| ~~~~~~~~~~~~~
doll.cpp:33:2: note: in expansion of macro 'FOR'
33 | FOR(i,nums.size()){
| ^~~