Masyvo užklausos 4
- [1] 2018-11-17 12:55 (25)
- [2] 2018-11-17 13:22 (25)
- [3] 2018-11-17 13:23 (25)
- [4] 2018-11-17 13:39 (25)
- [5] 2018-11-17 13:42 (39.3)
- [6] 2018-11-17 14:14 (0)
- [7] 2018-11-17 14:14 (92.9)
- [8] 2018-11-17 14:16 (100)
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. | result | time | message |
---|