Problem | artswap |
---|---|
User | OviyanGandhi |
Submission Time | 2024-03-25 03:24:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
artswap.cpp:10:2: error: ‘vector’ does not name a type
10 | vector<int> seg;
| ^~~~~~
artswap.cpp: In constructor ‘SegTree::SegTree(int)’:
artswap.cpp:13:11: error: class ‘SegTree’ does not have any field named ‘seg’
13 | : n{n}, seg(4*n) { }
| ^~~
artswap.cpp: In member function ‘void SegTree::update(int, int, int, int)’:
artswap.cpp:17:4: error: ‘seg’ was not declared in this scope
17 | seg[pos]++;
| ^~~
artswap.cpp:25:3: error: ‘seg’ was not declared in this scope
25 | seg[pos] = seg[2*pos] + seg[2*pos+1];
| ^~~
artswap.cpp: In member function ‘int SegTree::query(int, int, int, int)’:
artswap.cpp:31:11: error: ‘seg’ was not declared in this scope
31 | return seg[pos];
| ^~~
artswap.cpp: In function ‘void artswap(int, ll, int, int)’:
artswap.cpp:60:10: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
60 | mbw =