Borderou de evaluare (job #1069609)
Utilizator | Data | 30 decembrie 2013 12:30:16 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:17: error: ‘int index [100001]’ redeclared as different kind of symbol
int index[100001],low[100001],s[100001],m,n,nr=1,u,k,viz[100001];
^
In file included from /usr/local/include/c++/4.8.0/cstring:42:0,
from user.cpp:3:
/usr/include/string.h:480:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void tarjan(int)’:
user.cpp:22:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[nod]=low[nod]=nr;
^
user.cpp:26:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[nod].size();i++)
^
user.cpp:29:27: error: invalid types ‘<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}]’ for array subscript
if(index[v[nod][i]]==0)
^
user.cpp:40:40: error: invalid types ‘<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}]’ for array subscript
if(low[nod]>index[v[nod][i]])
^
user.cpp:42:41: error: invalid types ‘<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}]’ for array subscript
low[nod]=index[v[nod][i]];
^
user.cpp:47:27: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if(low[nod]==index[nod])
^
user.cpp: In function ‘void afisare()’:
user.cpp:68:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<sol[i].size();j++)
^
user.cpp: In function ‘int main()’:
user.cpp:81:19: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if(index[i]==0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !