Borderou de evaluare (job #2191878)
Utilizator | Data | 3 aprilie 2018 22:54:12 | |
---|---|---|---|
Problema | Plimbare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:26: error: ‘int index [105]’ redeclared as different kind of symbol
int low[NMAX], index[NMAX], path[NMAX], father[NMAX];
^
In file included from /usr/include/c++/6/cstring:42:0,
from user.cpp:3:
/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 tarjan(int)’:
user.cpp:27:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[node] = low[node] = curr_index++;
^
user.cpp:33:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (!index[next])
^
user.cpp:39:50: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
low[node] = min(low[node], index[next]);
^
user.cpp:42:32: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (low[node] == index[node])
^
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:80:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (good[next])
^
user.cpp: In function ‘int main()’:
user.cpp:128:21: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (!index[i])
^
user.cpp:143:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (good[i])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !