Borderou de evaluare (job #1787982)
Utilizator | Data | 25 octombrie 2016 13:31:43 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:43: error: ‘int index’ redeclared as different kind of symbol
int n, m, idx[NMAX], lowlink[NMAX], ctcs, index;
^
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 tarjan(int)’:
user.cpp:18:7: error: no pre-increment operator for type
++index;
^
user.cpp:19:15: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
idx[node] = index;
^
user.cpp:20:19: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
lowlink[node] = index;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !