Borderou de evaluare (job #3345818)
| Utilizator | Data | 11 martie 2026 11:17:17 | |
|---|---|---|---|
| Problema | Sirbun | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:13:3: error: 'vector' does not name a type
13 | vector <int> tree;
| ^~~~~~
main.cpp:14:3: error: 'vector' does not name a type
14 | vector <int> lazy;
| ^~~~~~
main.cpp: In member function 'void SegmentTreeLazy::push(int, int, int)':
main.cpp:23:15: error: 'class SegmentTreeLazy' has no member named 'lazy'
23 | if (this->lazy[node] == 0) {
| ^~~~
main.cpp:27:13: error: 'class SegmentTreeLazy' has no member named 'tree'
27 | this->tree[node] += this->lazy[node];
| ^~~~
main.cpp:27:33: error: 'class SegmentTreeLazy' has no member named 'lazy'
27 | this->tree[node] += this->lazy[node];
| ^~~~
main.cpp:30:13: error: 'class SegmentTreeLazy' has no member named 'lazy'
30 | this->lazy[left_son(node)] += this->lazy[node];
| ^~~~
main.cpp:30:43: error: 'class SegmentTreeLazy' has no member named 'lazy'
30 | this->lazy[left_son(node)] += this->lazy[node];
| ^~~~
main.cpp:31:13: error: 'class SegmentTreeLazy' has no member named 'lazy'
31 | this->lazy[right_son(node)] += this->lazy[node];
| ^~~~
main.cpp:31:44: error: 'class SegmentTreeLazy' has no member named 'lazy'
31 | this->lazy[right_son(node)] += this->lazy[node];
| ^~~~
main.cpp:33:11: error: 'class SegmentTreeLazy' has no member named 'lazy'
33 | this->lazy[node] = 0;
| ^~~~
main.cpp: In member function 'void SegmentTreeLazy::pull(int, int, int)':
main.cpp:36:26: error: 'class SegmentTreeLazy' has no member named 'tree'
36 | int left_val = this->tree[left_son(node)] + this->lazy[left_son(node)];
| ^~~~
main.cpp:36:55: error: 'class SegmentTreeLazy' has no member named 'lazy'
36 | int left_val = this->tree[left_son(node)] + this->lazy[left_son(node)];
| ^~~~
main.cpp:37:27: error: 'class SegmentTreeLazy' has no member named 'tree'
37 | int right_val = this->tree[right_son(node)] + this->lazy[right_son(node)];
| ^~~~
main.cpp:37:57: error: 'class SegmentTreeLazy' has no member named 'lazy'
37 | int right_val = this->tree[right_son(node)] + this->lazy[right_son(node)];
| ^~~~
main.cpp:38:11: error: 'class SegmentTreeLazy' has no member named 'tree'
38 | this->tree[node] = min(left_val, right_val);
| ^~~~
main.cpp: In member function 'void SegmentTreeLazy::update(int, int, int, const int&, const int&, const int&)':
main.cpp:44:13: error: 'class SegmentTreeLazy' has no member named 'lazy'
44 | this->lazy[node] += val;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
