doll.cpp: In function 'void answer(std::vector<int>, std::vector<int>, std::vector<int>)':
doll.cpp:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
12 | for(auto it: c) cout << it << ' '; cout << endl;
| ^~~
doll.cpp:12:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
12 | for(auto it: c) cout << it << ' '; cout << endl;
| ^~~~
doll.cpp:13:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
13 | for(auto it: x) cout << it << ' '; cout << endl;
| ^~~
doll.cpp:13:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for(auto it: x) cout << it << ' '; cout << endl;
| ^~~~
doll.cpp:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
14 | for(auto it: y) cout << it << ' '; cout << endl;
| ^~~
doll.cpp:14:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
14 | for(auto it: y) cout << it << ' '; cout << endl;
| ^~~~
doll.cpp: In function 'int build(std::vector<int>)':
doll.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < v.size(); i ++) {
| ~~^~~~~~~~~~
doll.cpp: At global scope:
doll.cpp:54:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
54 | main () {
| ^~~~
/usr/bin/ld: /tmp/ccGCoEq0.o: in function `answer(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x1f0): multiple definition of `answer(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'; /tmp/ccIlTPe1.o:doll.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccGCoEq0.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccIlTPe1.o:doll.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status