Borderou de evaluare (job #682499)

Utilizator avatar Buzdi Buzdugan Rares-Andrei Buzdi IP ascuns
Problemă Unique Characters (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2022 14:26:08 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:16: error: 'int index [70][2]' redeclared as different kind of entity 11 | int index[70][2]; | ^ In file included from /usr/include/string.h:462, from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/cstring:42, 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 'int main()': main.cpp:20:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 20 | index[i][0] = index[i][1] = -1; | ^ main.cpp:20:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 20 | index[i][0] = index[i][1] = -1; | ^ main.cpp:29:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 29 | ans += 1LL * (i - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:29:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 29 | ans += 1LL * (i - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:29:70: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 29 | ans += 1LL * (i - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:30:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 30 | index[c][0] = index[c][1]; | ^ main.cpp:30:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 30 | index[c][0] = index[c][1]; | ^ main.cpp:31:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 31 | index[c][1] = i; | ^ main.cpp:37:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 37 | ans += 1LL * (n - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:37:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 37 | ans += 1LL * (n - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:37:70: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 37 | ans += 1LL * (n - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:43:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 43 | ans += 1LL * (n - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:43:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 43 | ans += 1LL * (n - index[c][1]) * (index[c][1] - index[c][0]); | ^ main.cpp:43:70: error: invalid types '<unresolved overloaded function type>[int]' for array subscript