doll.cpp: In lambda function:
doll.cpp:38:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i = 0; i < vec.size(); i += 2) {
| ~~^~~~~~~~~~~~
doll.cpp:45:3: error: 'node' was not declared in this scope
45 | node++;
| ^~~~
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:47:2: error: conversion from 'create_circuit(int, std::vector<int>)::<lambda(std::vector<int>&)>' to non-scalar type 'std::function<int(std::vector<int>&)>' requested
47 | };
| ^
doll.cpp:56:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | while(nxt * 2 < nx[i].size()) nxt *= 2;
| ~~~~~~~~^~~~~~~~~~~~~~
doll.cpp:58:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
58 | while(nx[i].size() < nxt) nx[i].pb(i);
| ~~~~~~~~~~~~~^~~~~
doll.cpp:30:6: warning: unused variable 'now' [-Wunused-variable]
30 | int now = 0, root;
| ^~~
doll.cpp:30:15: warning: unused variable 'root' [-Wunused-variable]
30 | int now = 0, root;
| ^~~~