Borderou de evaluare (job #3133629)
Utilizator | Data | 26 mai 2023 14:06:03 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:6: error: 'vector' in namespace 'std' does not name a template type
10 | std::vector<int> arb;
| ^~~~~~
main.cpp:8:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
7 | #include <algorithm>
+++ |+#include <vector>
8 | std::ifstream in("../arbint.in");
main.cpp: In function 'void upd(int, int, int, int, int)':
main.cpp:16:9: error: 'arb' was not declared in this scope
16 | arb[nod] = x;
| ^~~
main.cpp:23:5: error: 'arb' was not declared in this scope
23 | arb[nod] = std::max(arb[2*nod], arb[2*nod+1]);
| ^~~
main.cpp: In function 'void query(int, int, int, int&, int, int)':
main.cpp:29:12: error: 'arb' was not declared in this scope
29 | if(arb[nod]>mx)
| ^~~
main.cpp: In function 'int main()':
main.cpp:43:5: error: 'arb' was not declared in this scope
43 | arb.resize(n+2);
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !