Borderou de evaluare (job #2398927)
Utilizator | Data | 6 aprilie 2019 14:14:38 | |
---|---|---|---|
Problema | Arbore | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:144: error: 'int index' redeclared as different kind of symbol
int v[MAXN + 1], first[MAXN + 1], last[MAXN + 1], wh_node[MAXN + 1], lazy[(MAXN >> BUCK) + 1], sb[(MAXN >> BUCK) + 1], eb[(MAXN >> BUCK) + 2], index, n, num_b;
^~~~~
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, int)':
main.cpp:14:13: error: no pre-increment operator for type
wh_node[++index] = node;
^~~~~
main.cpp:15:17: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
first[node] = index;
^~~~~
main.cpp:19:16: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
last[node] = index;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !