Borderou de evaluare (job #2125044)
Utilizator | Data | 7 februarie 2018 21:20:24 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:121:40: error: ‘int index [100010]’ redeclared as different kind of symbol
int RMQ[2][18][100010],x,y,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:127:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[nod]=c++;
^
user.cpp: In function ‘void query_handler()’:
user.cpp:153:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
--x=index[x];
^
user.cpp:154:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
--y=index[y];
^
user.cpp: In function ‘int main()’:
user.cpp:169:37: error: ISO C++ forbids applying ‘sizeof’ to an expression of function type [-fpermissive]
memcpy(index2,index,sizeof(index));
^
user.cpp:169:38: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘const void*’
memcpy(index2,index,sizeof(index));
^
user.cpp:171: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 !