doll.cpp: In function 'void ansawer(std::vector<int>, std::vector<int>, std::vector<int>)':
doll.cpp:25:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
25 | for(auto e : a)cout << e << " ";cout << endl;
| ^~~
doll.cpp:25:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
25 | 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++)
......
26 | FOR(i,b.size()){
| ~~~~~~~~~~
doll.cpp:26:2: note: in expansion of macro 'FOR'
26 | 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++)
......
34 | FOR(i,nums.size()){
| ~~~~~~~~~~~~~
doll.cpp:34:2: note: in expansion of macro 'FOR'
34 | FOR(i,nums.size()){
| ^~~