Borderou de evaluare (job #1665179)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 26 martie 2016 17:25:31
Problema Plimbare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:68:19: error: ‘int index’ redeclared as different kind of symbol int globalMaxLen, index, indexPrev; ^ 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 getLongestCycle(const int&)’: user.cpp:80:15: error: overloaded function with no contextual type information index = cur; ^ user.cpp: In function ‘int main()’: user.cpp:103:26: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘<unresolved overloaded function type>’ getLongestCycle(index); ^ user.cpp:69:6: error: in passing argument 1 of ‘void getLongestCycle(const int&)’ void getLongestCycle(const int &cur) { ^

Ceva nu functioneaza?