Borderou de evaluare (job #2574571)
Utilizator | Data | 5 martie 2020 23:56:51 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:44: error: 'int index' redeclared as different kind of symbol
int noduri, muchii, componente_tari, a, b, index = 1, ids[nmax];
^~~~~
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:20:17: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
ids[node] = index;
^~~~~
main.cpp:21:20: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
lowkey[node] = index;
^~~~~
main.cpp:22:7: error: no pre-increment operator for type
++index;
^~~~~
main.cpp:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < mat[node].size(); ++i)
~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:68:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < componente[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 !