In file included from /usr/include/c++/10/cassert:44,
from doll.cpp:3:
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:30:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | assert((1<<L >= ord[i].size()) && (ord[i].size() > 1<<L-1));
| ~~~~~^~~~~~~~~~~~~~~~
doll.cpp:30:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
30 | assert((1<<L >= ord[i].size()) && (ord[i].size() > 1<<L-1));
| ~^~
doll.cpp:30:53: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | assert((1<<L >= ord[i].size()) && (ord[i].size() > 1<<L-1));
| ~~~~~~~~~~~~~~^~~~~~~~
doll.cpp:36:23: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
36 | for(int j=0;j<(1<<L-1);++j)
| ~^~
doll.cpp:38:15: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
38 | int k=1<<L-1;
| ~^~
doll.cpp:40:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
40 | k |= (i>>b&1)<<L-2-b; // reverse bits of i
| ~~~^~
In file included from /usr/include/c++/10/cassert:44,
from doll.cpp:3:
doll.cpp:43:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
43 | assert(path.size() == (1<<L-1));
| ~^~
doll.cpp:43:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | assert(path.size() == (1<<L-1));
| ~~~~~~~~~~~~^~~~~~~~~~~
doll.cpp:46:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for(int j=0;j<path.size();++j)
| ~^~~~~~~~~~~~