wall.cpp: In constructor 'edge::edge()':
wall.cpp:10:25: warning: 'edge::cost' will be initialized after [-Wreorder]
int to, bit; long long cost;
^~~~
wall.cpp:10:10: warning: 'int edge::bit' [-Wreorder]
int to, bit; long long cost;
^~~
wall.cpp:11:2: warning: when initialized here [-Wreorder]
edge() : to(-1), cost(0), bit(0) {};
^~~~
wall.cpp: In constructor 'edge::edge(int, long long int, int)':
wall.cpp:10:25: warning: 'edge::cost' will be initialized after [-Wreorder]
int to, bit; long long cost;
^~~~
wall.cpp:10:10: warning: 'int edge::bit' [-Wreorder]
int to, bit; long long cost;
^~~
wall.cpp:12:2: warning: when initialized here [-Wreorder]
edge(int to_, long long cost_, int bit_) : to(to_), cost(cost_), bit(bit_) {};
^~~~
wall.cpp: In constructor 'state::state()':
wall.cpp:16:26: warning: 'state::cost' will be initialized after [-Wreorder]
int pos, bit; long long cost;
^~~~
wall.cpp:16:11: warning: 'int state::bit' [-Wreorder]
int pos, bit; long long cost;
^~~
wall.cpp:17:2: warning: when initialized here [-Wreorder]
state() : pos(-1), cost(0), bit(0) {};
^~~~~
wall.cpp: In constructor 'state::state(int, long long int, int)':
wall.cpp:16:26: warning: 'state::cost' will be initialized after [-Wreorder]
int pos, bit; long long cost;
^~~~
wall.cpp:16:11: warning: 'int state::bit' [-Wreorder]
int pos, bit; long long cost;
^~~
wall.cpp:18:2: warning: when initialized here [-Wreorder]
state(int pos_, long long cost_, int bit_) : pos(pos_), cost(cost_), bit(bit_) {};
^~~~~
wall.cpp: In function 'int main()':
wall.cpp:45:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < points.size(); ++k) {
~~^~~~~~~~~~~~~~~