Borderou de evaluare (job #2369344)
Utilizator | Data | 5 martie 2019 22:36:22 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:30: error: 'std::vector<int> index' redeclared as different kind of symbol
vector <int> v[maxn],a[maxn],index,low_index,on_stack,viz,con,origin;
^~~~~
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 tarjan(int)':
main.cpp:30:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[x]=val;
^
main.cpp:40:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<v[v[x][i]].size();j++)
~^~~~~~~~~~~~~~~~~~
main.cpp:52:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[x]==low_index[x])
^
main.cpp: In function 'int main()':
main.cpp:81:26: error: 'index' does not have class type
on_stack.resize(n+1);index.resize(n+1);low_index.resize(n+1);viz.resize(n+1);origin.resize(n+1);
^~~~~
main.cpp:91:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<c[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 !