Borderou de evaluare (job #1929281)
Utilizator | Data | 17 martie 2017 13:48:12 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:33: error: ‘int index’ redeclared as different kind of symbol
int label[NMAX], lowlink[NMAX], index, nr, nodes, edges;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void StrongCon(int)’:
user.cpp:18:17: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
label[node] = index;
^
user.cpp:19:19: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
lowlink[node] = index;
^
user.cpp:20:11: error: no post-increment operator for type
index ++ ;
^
user.cpp:17:9: warning: unused variable ‘x’ [-Wunused-variable]
int x = 0, w;
^
user.cpp: In function ‘int main()’:
user.cpp:69:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < CTC[i].size() ; ++ j) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !