Borderou de evaluare (job #2722161)
Utilizator | Data | 12 martie 2021 17:02:35 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:27: error: 'int index [100005]' redeclared as different kind of symbol
int n,m,cnt=0,index[100005],low_link[100005],ctc;
^
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 dfs(int)':
main.cpp:18:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[node]=low_link[node]=++cnt;
^
main.cpp:19:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<adj[node].size(); i++)
~^~~~~~~~~~~~~~~~~
main.cpp:22:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[vec]==0)
^
main.cpp:31:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[node]==low_link[node])
^
main.cpp: In function 'int main()':
main.cpp:60:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[i]==0)
^
main.cpp:68:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<sol[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 !