Borderou de evaluare (job #2009140)
Utilizator | Data | 8 august 2017 17:26:37 | |
---|---|---|---|
Problema | Permutari II | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:43: error: ‘int index’ redeclared as different kind of symbol
int n, v[100010], viz[100010], kmax=1, k, 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 ‘int main()’:
user.cpp:23:19: error: overloaded function with no contextual type information
index = v[i];
^
user.cpp:24:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’
while(index != i){viz[index] = 1;index = v[index]; k++;}
^
user.cpp:24:40: error: invalid types ‘int [100010][<unresolved overloaded function type>]’ for array subscript
while(index != i){viz[index] = 1;index = v[index]; k++;}
^
user.cpp:24:61: error: invalid types ‘int [100010][<unresolved overloaded function type>]’ for array subscript
while(index != i){viz[index] = 1;index = v[index]; k++;}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !