Borderou de evaluare (job #1474049)
Utilizator | Data | 20 august 2015 19:52:21 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:21:15: error: ‘int index [100005]’ redeclared as different kind of symbol
int index[MAXN], lowlink[MAXN], nrindex;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:9:
/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 ‘int main()’:
user.cpp:41:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[i] == 0)
^
user.cpp:46:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < final.size(); ++i) {
^
user.cpp:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < final[i].size(); ++j)
^
user.cpp: In function ‘void tarjan(int)’:
user.cpp:58:9: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[n] = lowlink[n] = nrindex;
^
user.cpp:64:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[*it] == 0) {
^
user.cpp:72:13: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if (index[n] == lowlink[n]) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !