Borderou de evaluare (job #2165888)
Utilizator | Data | 13 martie 2018 14:16:02 | |
---|---|---|---|
Problema | Smooth2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:17: error: ‘int index’ redeclared as different kind of symbol
int n,frecv[26],index,ans,viz[26];
^
In file included from user.cpp:3:0:
/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 ‘int grup(int)’:
user.cpp:14:14: error: no post-increment operator for type
index++;
^
user.cpp:16:34: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator!=’
if(viz[sir[j]-'a']!= index){
^
user.cpp:17:32: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
viz[sir[j]-'a']= index;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !