Borderou de evaluare (job #2102256)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 8 ianuarie 2018 16:33:50
Problema Search Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:5: error: ‘int index’ redeclared as different kind of symbol int index = -1; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:4: /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 solve(int, char)’: user.cpp:81:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if(index == 0) ^ user.cpp:87:19: error: invalid types ‘int [5005][<unresolved overloaded function type>]’ for array subscript match[i][index] = p[i][c - 'a'][0]; ^ user.cpp:92:19: error: invalid types ‘int [5005][<unresolved overloaded function type>]’ for array subscript match[i][index] = -1; ^ user.cpp:100:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’ if(index < l[i] && p[i][c - 'a'].size() && match[i][index - 1] != -1) ^ user.cpp:100:64: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ if(index < l[i] && p[i][c - 'a'].size() && match[i][index - 1] != -1) ^ user.cpp:103:39: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ int pos = pre[i][match[i][index - 1]][c - 'a']; ^ user.cpp:108:19: error: invalid types ‘int [5005][<unresolved overloaded function type>]’ for array subscript match[i][index] = pos; ^ user.cpp:112:19: error: invalid types ‘int [5005][<unresolved overloaded function type>]’ for array subscript match[i][index] = -1; ^ user.cpp:116:19: error: invalid types ‘int [200005][<unresolved overloaded function type>]’ for array subscript return memo[index] = ans; ^ user.cpp: In function ‘int main()’: user.cpp:145:10: error: overloaded function with no contextual type information index -= 1; ^ user.cpp:146:21: error: invalid types ‘int [200005][<unresolved overloaded function type>]’ for array subscript out << memo[index] << "\n"; ^ user.cpp:150:6: error: no pre-increment operator for type ++index; ^ user.cpp: In function ‘int solve(int, char)’: user.cpp:117:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?