Borderou de evaluare (job #2496564)

Utilizator NineshadowCarapcea Antonio Nineshadow Data 21 noiembrie 2019 00:58:01
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:13: error: 'MAXN' was not declared in this scope int n, m, v[MAXN], t[TREE_MAXN]; ^~~~ main.cpp:5:22: error: 'TREE_MAXN' was not declared in this scope int n, m, v[MAXN], t[TREE_MAXN]; ^~~~~~~~~ main.cpp: In function 'void build(int, int64_t, int64_t)': main.cpp:10:9: error: 't' was not declared in this scope t[nod] = v[st]; ^ main.cpp:10:18: error: 'v' was not declared in this scope t[nod] = v[st]; ^ main.cpp:21:5: error: 't' was not declared in this scope t[nod] = std::min(t[left_child], t[right_child]); ^ main.cpp: In function 'int query(int64_t, int64_t, int64_t, int64_t, int64_t)': main.cpp:30:16: error: 'MAX_ELEM' was not declared in this scope return MAX_ELEM; ^~~~~~~~ main.cpp:34:16: error: 't' was not declared in this scope return t[nod]; ^ main.cpp: In function 'void update(int64_t, int64_t, int64_t, int64_t, int)': main.cpp:48:9: error: 't' was not declared in this scope t[nod] = val; ^ main.cpp:59:5: error: 't' was not declared in this scope t[nod] = std::min(t[nod << 1], t[(nod << 1) + 1]); ^ main.cpp: In function 'std::vector<int> rmq(const std::vector<int>&, const std::vector<std::pair<int, int> >&)': main.cpp:71:9: error: 'v' was not declared in this scope v[k++] = i; ^ Non zero exit status: 1

Ceva nu functioneaza?