Borderou de evaluare (job #3338437)
| Utilizator | Data | 3 februarie 2026 11:46:57 | |
|---|---|---|---|
| Problema | Qxy | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:12: error: 'vector' has not been declared in 'std'
9 | using std::vector;
| ^~~~~~
main.cpp:19:5: error: 'vector' does not name a type
19 | vector<unsigned> roots;
| ^~~~~~
main.cpp:20:5: error: 'vector' does not name a type
20 | vector<Node> nodes;
| ^~~~~~
main.cpp: In constructor 'Tree::Tree(unsigned int)':
main.cpp:24:9: error: 'roots' was not declared in this scope
24 | roots.resize(size);
| ^~~~~
main.cpp:25:9: error: 'nodes' was not declared in this scope
25 | nodes.resize(size << 4);
| ^~~~~
main.cpp: In member function 'void Tree::update_impl(unsigned int, unsigned int, unsigned int, unsigned int)':
main.cpp:48:22: error: 'nodes' was not declared in this scope
48 | Node clone = nodes[...];
| ^~~~~
main.cpp:48:28: error: expected primary-expression before '...' token
48 | Node clone = nodes[...];
| ^~~
main.cpp:48:28: error: expected ']' before '...' token
main.cpp:48:14: warning: unused variable 'clone' [-Wunused-variable]
48 | Node clone = nodes[...];
| ^~~~~
main.cpp: In member function 'unsigned int Tree::query_impl(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) const':
main.cpp:61:20: error: 'nodes' was not declared in this scope
61 | return nodes[include_id].sum - nodes[exclude_id].sum;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
