Borderou de evaluare (job #3301642)
| Utilizator | Data | 28 iunie 2025 19:56:13 | |
|---|---|---|---|
| Problema | Componente tare conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:14:30: error: 'int index [100005]' redeclared as different kind of entity
14 | int lowlink[nmax], index[nmax];
| ^
In file included from /usr/include/string.h:462,
from /usr/include/c++/12.2.1/cstring:42,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
main.cpp: In function 'void buildCTC(int)':
main.cpp:23:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
23 | index[node] = ++curr_idx;
| ^
main.cpp:24:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
24 | lowlink[node] = index[node];
| ^
main.cpp:30:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
30 | if(!index[adj])
| ^
main.cpp:40:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
40 | if(lowlink[node] == index[node])
| ^
main.cpp: In function 'int main()':
main.cpp:68:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
68 | if(!index[i])
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
