Masyvo užklausos 4

Taškai: 0

Compile: FAIL

segment_tree_4.cpp:4:9: error: ‘ll’ does not name a type typedef ll long long; ^ segment_tree_4.cpp:23:5: error: ‘ll’ does not name a type ll val; ^ segment_tree_4.cpp:37:5: error: ‘ll’ does not name a type ll build(int aL, int aR) { ^ segment_tree_4.cpp:53:5: error: ‘ll’ does not name a type ll getIntervalSum(int aL, int aR) { ^ segment_tree_4.cpp:67:5: error: ‘ll’ does not name a type ll setValVal(int aVal) { ^ segment_tree_4.cpp:72:5: error: ‘ll’ does not name a type ll setIntervalVal(int aL, int aR, int aVal) { ^ segment_tree_4.cpp: In constructor ‘node::node()’: segment_tree_4.cpp:32:9: error: ‘val’ was not declared in this scope val = 0; ^ segment_tree_4.cpp: In member function ‘void node::debug()’: segment_tree_4.cpp:94:17: error: ‘val’ was not declared in this scope cout << val << '\t' << setVal << '\n'; ^ segment_tree_4.cpp: In function ‘int main()’: segment_tree_4.cpp:107:10: error: ‘struct node’ has no member named ‘build’ root.build(1, N); ^ segment_tree_4.cpp:115:26: error: ‘struct node’ has no member named ‘getIntervalSum’ cout << root.getIntervalSum(a, b) << '\n'; ^ segment_tree_4.cpp:119:18: error: ‘struct node’ has no member named ‘setIntervalVal’ root.setIntervalVal(a, b, c); ^

nr.resulttimemessage