Borderou de evaluare (job #3206813)
Utilizator | Data | 24 februarie 2024 11:01:21 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:13: error: 'std::vector<int> index' redeclared as different kind of entity
11 | vector<int> index;
| ^~~~~
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 initGraphs()':
main.cpp:20:42: error: overloaded function with no contextual type information
20 | index = vector<int>(numberOfNodes + 1);
| ^
main.cpp: In function 'void tarjan(int)':
main.cpp:36:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
36 | index[node] = lowlink[node] = ++globalIndex;
| ^
main.cpp:45:53: error: invalid types '<unresolved overloaded function type>[const int]' for array subscript
45 | lowlink[node] = min(lowlink[node], index[neighbour]);
| ^
main.cpp:49:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
49 | if (index[node] == lowlink[node]) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !