Borderou de evaluare (job #2165876)

Utilizator EclipseTepes Alexandru Eclipse Data 13 martie 2018 14:09:44
Problema Smooth2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:22: error: ‘int index’ redeclared as different kind of symbol int frecv[26], leng, index, answer; ^ 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:17:41: error: no post-increment operator for type for (i = 0; i < leng; i += k) {index++; ^ user.cpp:19:42: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator!=’ if (visited[sir[j] - 'a'] != index) { ^ user.cpp:20:39: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ visited[sir[j] - 'a'] = index; ^

Ceva nu functioneaza?