Borderou de evaluare (job #2262975)
Utilizator | Data | 17 octombrie 2018 23:04:49 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:2: error: 'vector' does not name a type
vector<int> aint;
^~~~~~
main.cpp:16:2: error: 'vector' does not name a type
vector<int> lazy;
^~~~~~
main.cpp:18:35: error: 'vector' has not been declared
void build(int nod,int st,int dr,vector<int> &base){
^~~~~~
main.cpp:18:41: error: expected ',' or '...' before '<' token
void build(int nod,int st,int dr,vector<int> &base){
^
main.cpp:84:20: error: expected ')' before '<' token
SegmentTree(vector<int> &base){
^
main.cpp: In member function 'void SegmentTree::build(int, int, int, int)':
main.cpp:19:3: error: 'lazy' was not declared in this scope
lazy[nod] = 0;
^~~~
main.cpp:20:3: error: 'aint' was not declared in this scope
aint[nod] = 0;
^~~~
main.cpp:23:16: error: 'base' was not declared in this scope
aint[nod] = base[st];
^~~~
main.cpp:29:24: error: 'base' was not declared in this scope
build(nod * 2,st,mid,base);
^~~~
main.cpp: In member function 'void SegmentTree::propag(int, int, int)':
main.cpp:35:19: error: 'lazy' was not declared in this scope
if(st == dr || !lazy[nod]){
^~~~
main.cpp:39:3: error: 'lazy' was not declared in this scope
lazy[2 * nod] += lazy[nod];
^~~~
main.cpp:41:3: error: 'aint' was not declared in this scope
aint[2 * nod] += lazy[nod];
^~~~
main.cpp: In member function 'void SegmentTree::update(int, int, int, int, int, int)':
main.cpp:54:4: error: 'lazy' was not declared in this scope
lazy[nod] += val;
^~~~
main.cpp:55:4: error: 'aint' was not declared in this scope
aint[nod] += val;
^~~~
main.cpp:64:3: error: 'aint' was not declared in this scope
aint[nod] = max(aint[2 * nod],aint[2 * nod + 1]);
^~~~
main.cpp: In member function 'int SegmentTree::query(int, int, int, int, int)':
main.cpp:75:11: error: 'aint' was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !