Borderou de evaluare (job #2461072)
Utilizator | Data | 24 septembrie 2019 20:57:18 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:16: error: 'int index [100005]' redeclared as different kind of symbol
int index[MAX_V];
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'void heavyDfs(int)':
main.cpp:68:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[u] = int(dfsOrder.size()) + 1;
^
main.cpp: In function 'void pp(int&, int&)':
main.cpp:96:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[u] > index[v]) {
^
main.cpp:96:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[u] > index[v]) {
^
main.cpp: In function 'void update(int, int)':
main.cpp:103:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
updateSegTree(1, 1, n, index[node], val);
^
main.cpp: In function 'int query(int, int)':
main.cpp:110:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return querySegTree(1, 1, n, index[u], index[v]);
^
main.cpp:110:55: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return querySegTree(1, 1, n, index[u], index[v]);
^
main.cpp:114:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[u], index[head[u]]), max(index[u], index[head[u]]));
^
main.cpp:114:64: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[u], index[head[u]]), max(index[u], index[head[u]]));
^
main.cpp:114:79: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[u], index[head[u]]), max(index[u], index[head[u]]));
^
main.cpp:114:95: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[u], index[head[u]]), max(index[u], index[head[u]]));
^
main.cpp:117:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[v], index[head[v]]), max(index[v], index[head[v]]));
^
main.cpp:117:64: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = querySegTree(1, 1, n, min(index[v], index[head[v]]), max(index[v], index[head[v]]));
^
main.cpp:117:79: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !