Borderou de evaluare (job #2626281)
Utilizator | Data | 6 iunie 2020 13:03:46 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:20: error: expected ']' before ';' token
#define NMAX 100001;
^
main.cpp:12:7: note: in expansion of macro 'NMAX'
int v[NMAX], tree[2 * NMAX];
^~~~
main.cpp:12:11: error: expected unqualified-id before ']' token
int v[NMAX], tree[2 * NMAX];
^
main.cpp:12:27: error: expected unqualified-id before ']' token
int v[NMAX], tree[2 * NMAX];
^
main.cpp: In function 'void buildArbInt(int, int, int)':
main.cpp:16:3: error: 'tree' was not declared in this scope
tree[node] = v[st];
^~~~
main.cpp:16:16: error: 'v' was not declared in this scope
tree[node] = v[st];
^
main.cpp:23:3: error: 'tree' was not declared in this scope
tree[node] = min(tree[2 * node], tree[2 * node + 1]);
^~~~
main.cpp: In function 'int RMQ(int, int, int, int, int)':
main.cpp:29:37: error: 'tree' was not declared in this scope
if (qst <= st && dr <= qdr) return tree[node];
^~~~
main.cpp: In function 'int main()':
main.cpp:51:9: error: 'v' was not declared in this scope
in >> v[i];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !