Borderou de evaluare (job #2913521)

Utilizator vlad2009Vlad Tutunaru vlad2009 Data 14 iulie 2022 22:12:36
Problema S2c Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:20: error: 'int index [2001]' redeclared as different kind of entity 9 | int index[MAX_N + 1], dp[MAX_N + 1][MAX_N + 1]; | ^ In file included from /usr/include/string.h:432, from main.cpp:3: /usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)' 61 | index (const char *__s, int __c) __THROW | ^~~~~ main.cpp: In function 'void normalize()': main.cpp:15:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 15 | index[a[1].second] = cnt; | ^ main.cpp:20:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 20 | index[a[i].second] = cnt; | ^ main.cpp: In function 'int main()': main.cpp:40:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 40 | dp[i][index[j]] = max(dp[i][index[j]], dp[j][index[i] - 1] + 1); | ^ main.cpp:40:50: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 40 | dp[i][index[j]] = max(dp[i][index[j]], dp[j][index[i] - 1] + 1); | ^ main.cpp:40:67: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 40 | dp[i][index[j]] = max(dp[i][index[j]], dp[j][index[i] - 1] + 1); | ^ Non zero exit status: 1

Ceva nu functioneaza?