Borderou de evaluare (job #3155948)
Utilizator | Data | 10 octombrie 2023 12:07:17 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:10: error: 'vector' in namespace 'std' does not name a template type
10 | std::vector<int> tree;
| ^~~~~~
main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <fstream>
+++ |+#include <vector>
2 |
main.cpp: In member function 'void SegmenTree::init(const int&)':
main.cpp:15:9: error: 'tree' was not declared in this scope; did you mean 'free'?
15 | tree.resize(2 * size);
| ^~~~
| free
main.cpp: In member function 'void SegmenTree::updatePoz(int, int, int, const int&, const int&)':
main.cpp:34:13: error: 'tree' was not declared in this scope; did you mean 'free'?
34 | tree[node] = val;
| ^~~~
| free
main.cpp:45:13: error: 'tree' was not declared in this scope; did you mean 'free'?
45 | tree[node] = std::max(tree[L], tree[R]);
| ^~~~
| free
main.cpp: In member function 'int SegmenTree::queryIntv(int, int, int, int, int)':
main.cpp:53:20: error: 'tree' was not declared in this scope; did you mean 'free'?
53 | return tree[ nod ];
| ^~~~
| free
main.cpp: At global scope:
main.cpp:68:10: error: 'vector' in namespace 'std' does not name a template type
68 | std::vector<int> pos, head;
| ^~~~~~
main.cpp:68:5: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
68 | std::vector<int> pos, head;
| ^~~
main.cpp:69:10: error: 'vector' in namespace 'std' does not name a template type
69 | std::vector<int> heavy, depth;
| ^~~~~~
main.cpp:69:5: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
69 | std::vector<int> heavy, depth;
| ^~~
main.cpp:70:10: error: 'vector' in namespace 'std' does not name a template type
70 | std::vector<int> parent, edges[MAXN];
| ^~~~~~
main.cpp:70:5: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
70 | std::vector<int> parent, edges[MAXN];
| ^~~
main.cpp: In member function 'void HeavyMax::init(const int&)':
main.cpp:75:9: error: 'pos' was not declared in this scope; did you mean 'poz'?
75 | pos.resize(size + 1);
| ^~~
| poz
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !