Borderou de evaluare (job #1208445)
Utilizator | Data | 15 iulie 2014 19:16:12 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:26: error: ‘int index [100005]’ redeclared as different kind of symbol
int N, M, ind, index[MAXN], lowlink[MAXN];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:5:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void tarjan(int)’:
user.cpp:28:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[node] = lowlink[node] = ind++;
^
user.cpp:33:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[*it] == -1) {
^
user.cpp:40:19: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[node] == lowlink[node]) {//we've found a stongly connected component
^
user.cpp: In function ‘void Solve()’:
user.cpp:54:35: error: ISO C++ forbids applying ‘sizeof’ to an expression of function type [-fpermissive]
memset(index, -1, sizeof(index));
^
user.cpp:54:36: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘void*’
memset(index, -1, sizeof(index));
^
user.cpp:56:20: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[i] == -1)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !