Borderou de evaluare (job #2125042)
Utilizator | Data | 7 februarie 2018 21:18:28 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:122:17: error: ‘int index [100010]’ redeclared as different kind of symbol
int index[100010],index2[100010],c;
^
In file included from /usr/include/c++/5/cstring:42:0,
from user.cpp:5:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:128:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[nod]=c++;
^
user.cpp: In function ‘void query_handler()’:
user.cpp:154:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
--x=index[x];
^
user.cpp:155:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
--y=index[y];
^
user.cpp: In function ‘int main()’:
user.cpp:170:37: error: ISO C++ forbids applying ‘sizeof’ to an expression of function type [-fpermissive]
memcpy(index2,index,sizeof(index));
^
user.cpp:170:38: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘const void*’
memcpy(index2,index,sizeof(index));
^
user.cpp:172:39: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘void*’
memcpy(index,index2,sizeof(index2));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !