0_0_24210666_4860.cpp:3:26: error: '__lg' was not declared in this scope
const int lgN = __lg(MAXN) + 5;
^
0_0_24210666_4860.cpp:44:52: error: 'NULL' was not declared in this scope
Node* pull(Node *u, bool single = true, Node *l = NULL, Node *r = NULL){
^
0_0_24210666_4860.cpp:44:68: error: 'NULL' was not declared in this scope
Node* pull(Node *u, bool single = true, Node *l = NULL, Node *r = NULL){
^
0_0_24210666_4860.cpp:60:47: error: 'NULL' was not declared in this scope
void modify(int mL, int mR, int v, Node *u = NULL){
^
0_0_24210666_4860.cpp:73:40: error: 'NULL' was not declared in this scope
Node* query(int qL, int qR, Node *u = NULL){
^
0_0_24210666_4860.cpp: In constructor 'SegmentTree::Node::Node(int, int)':
0_0_24210666_4860.cpp:14:12: error: 'NULL' was not declared in this scope
l = r = NULL;
^
0_0_24210666_4860.cpp: In member function 'SegmentTree::Node* SegmentTree::build(int, int)':
0_0_24210666_4860.cpp:42:16: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
return pull(u);
^
0_0_24210666_4860.cpp:42:16: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
0_0_24210666_4860.cpp: In member function 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)':
0_0_24210666_4860.cpp:71:9: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
pull(u);
^
0_0_24210666_4860.cpp:71:9: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
0_0_24210666_4860.cpp: In member function 'SegmentTree::Node* SegmentTree::query(int, int, SegmentTree::Node*)':
0_0_24210666_4860.cpp:75:47: error: 'NULL' was not declared in this scope
if (u->R <= qL || qR <= u->L) return (Node*)NULL;
^
0_0_24210666_4860.cpp: In function 'int main()':
0_0_24210666_4860.cpp:82:2: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(false);
^
0_0_24210666_4860.cpp:83:2: error: 'cin' was not declared in this scope
cin.tie(0);
^
0_0_24210666_4860.cpp:85:3: error: 'cout' was not declared in this scope
cout << "Case " << ++kase << ":\n";
^
0_0_24210666_4860.cpp:95:26: error: call to 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
sol->modify(a-1, a, v);
^
0_0_24210666_4860.cpp:99:27: error: call to 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
sol->modify(a-1, a, -v);
^
0_0_24210666_4860.cpp:103:30: error: call to 'SegmentTree::Node* SegmentTree::query(int, int, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
cout << sol->query(a-1, b)->sum << '\n';
^
|