foo.cpp:15:17: error: ISO C++ forbids declaration of 'Up' with no type [-fpermissive]
foo.cpp: In function 'int Up(int)':
foo.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
foo.cpp: In function 'void build(int, int, int)':
foo.cpp:23:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
foo.cpp: In function 'void updata(int, int, int, int, int)':
foo.cpp:34:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
foo.cpp: In function 'int query(int, int, int, int, int, int)':
foo.cpp:42:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]