Borderou de evaluare (job #2207246)
Utilizator | Data | 25 mai 2018 12:17:52 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:5: error: ‘int index’ redeclared as different kind of symbol
int index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^~~~~
user.cpp: In function ‘void dfs(int)’:
user.cpp:20:17: error: no pre-increment operator for type
d[node] = ++index;
^~~~~
user.cpp:21:17: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
low[node] = index;
^~~~~
user.cpp:24:10: error: no post-increment operator for type
index++;
^~
user.cpp: In function ‘int main()’:
user.cpp:60:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < ans.size(); i++){
~~^~~~~~~~~~~~
user.cpp:61:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < ans[i].size(); j++){
~~^~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !