Borderou de evaluare (job #2621650)
Utilizator | Data | 30 mai 2020 16:17:29 | |
---|---|---|---|
Problema | Omizi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:28: error: 'int index [16005]' redeclared as different kind of symbol
int level[maxn], index[maxn], index_right[maxn], left[maxn], crt;
^
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 DFS(int)':
main.cpp:30:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<edge[node].size(); i++){
~^~~~~~~~~~~~~~~~~~
main.cpp:39:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[node] = ++crt;
^
main.cpp: In function 'void buildTree(int, int, int)':
main.cpp:68:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[node1] < index[node2])
^
main.cpp:68:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[node1] < index[node2])
^
main.cpp: In function 'int query_left(int, int, int, int, int)':
main.cpp:94:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[node1] < index[node2])
^
main.cpp:94:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (index[node1] < index[node2])
^
main.cpp: In function 'void del(int, int, int, int)':
main.cpp:133:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else if (index[node1] < index[node2]) tree_left[node] = node1;
^
main.cpp:133:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else if (index[node1] < index[node2]) tree_left[node] = node1;
^
main.cpp: In function 'int main()':
main.cpp:207:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0; j<pos[dest].size(); j++)
~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int query_left(int, int, int, int, int)':
main.cpp:98:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !