Borderou de evaluare (job #2465978)
Utilizator | Data | 1 octombrie 2019 10:05:35 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:17: error: 'int index' redeclared as different kind of symbol
int n,m,i,j,x,y,index,cnt,v[DIM],low[DIM];
^~~~~
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:16:10: error: no post-increment operator for type
index++; v[nod] = index; low[nod] = index;
^~
main.cpp:16:23: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
index++; v[nod] = index; low[nod] = index;
^~~~~
main.cpp:16:41: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
index++; v[nod] = index; low[nod] = index;
^~~~~
main.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<L[nod].size(); i++)
~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:55:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0; j<ctc[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 !