books.cpp: In function 'void up(int, int, int, int, int)':
books.cpp:6:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
books.cpp:7:20: note: in expansion of macro 'tm'
#define sol v+v,tl,tm,l,r
^
books.cpp:27:7: note: in expansion of macro 'sol'
up(sol); up(sag); smn[v] = min(smn[v+v] , smn[v+v+1]);
^
books.cpp:6:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
books.cpp:8:19: note: in expansion of macro 'tm'
#define sag v+v+1,tm+1,tr,l,r
^
books.cpp:27:16: note: in expansion of macro 'sag'
up(sol); up(sag); smn[v] = min(smn[v+v] , smn[v+v+1]);
^
books.cpp: In function 'void qry(int, int, int, int, int)':
books.cpp:6:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
books.cpp:7:20: note: in expansion of macro 'tm'
#define sol v+v,tl,tm,l,r
^
books.cpp:33:8: note: in expansion of macro 'sol'
qry(sol); qry(sag);
^
books.cpp:6:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
^
books.cpp:8:19: note: in expansion of macro 'tm'
#define sag v+v+1,tm+1,tr,l,r
^
books.cpp:33:18: note: in expansion of macro 'sag'
qry(sol); qry(sag);
^
books.cpp: In function 'int main()':
books.cpp:82:26: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
cout << minimum_walk({1,0,2,3} , 2);
^
books.cpp:82:39: error: could not convert '{1, 0, 2, 3}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
cout << minimum_walk({1,0,2,3} , 2);
^