Borderou de evaluare (job #2372365)
Utilizator | Data | 7 martie 2019 08:50:38 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:5: error: 'int index' redeclared as different kind of symbol
int index,idx[100003],lowlink[100003],n,m,nrcomp;
^~~~~
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:20:12: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
idx[k]=index;
^~~~~
main.cpp:21:16: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
lowlink[k]=index;
^~~~~
main.cpp:22:10: error: no post-increment operator for type
index++;
^~
main.cpp: In function 'int main()':
main.cpp:52:11: error: overloaded function with no contextual type information
index=1;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !