Borderou de evaluare (job #2498101)
Utilizator | Data | 23 noiembrie 2019 14:52:10 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:17: error: 'int index [100005]' redeclared as different kind of symbol
int index[100005], lowlink[100005], onst[100005];
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'void strongconnect(int)':
main.cpp:18:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[v] = ind;
^
main.cpp:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[v].size(); i++) {
~~^~~~~~~~~~~~~
main.cpp:27:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[w] == -1) {
^
main.cpp:32:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
lowlink[v] = min(lowlink[v], index[w]);
^
main.cpp:36:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(lowlink[v] == index[v]) {
^
main.cpp: In function 'int main()':
main.cpp:59:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = -1;
^
main.cpp:64:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[i] == -1)
^
main.cpp:70:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < ctc[i].size(); j++) {
~~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !