Borderou de evaluare (job #2910278)

Utilizator vlad2009Vlad Tutunaru vlad2009 Data 18 iunie 2022 22:53:38
Problema P-sir Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:41: error: 'long long int index [2001]' redeclared as different kind of entity 11 | long long dp[MAX_N + 1], index[MAX_N + 1], sum[MAX_N + 1]; | ^ In file included from /usr/include/string.h:432, from main.cpp:4: /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:39:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 39 | index[a[1].second] = 2; | ^ main.cpp:44:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 44 | index[a[i].second] = cnt; | ^ main.cpp:49:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 49 | dp[index[j]]++; | ^ main.cpp:52:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 52 | if (index[j] > index[i]) { | ^ main.cpp:52:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 52 | if (index[j] > index[i]) { | ^ main.cpp:53:47: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 53 | long long tmp = query(j, index[i] - 1); | ^ main.cpp:54:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 54 | dp[index[j]] = (dp[index[j]] + tmp) % MOD; | ^ main.cpp:54:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 54 | dp[index[j]] = (dp[index[j]] + tmp) % MOD; | ^ main.cpp:55:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 55 | } else if (index[j] < index[i]) { | ^ main.cpp:55:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 55 | } else if (index[j] < index[i]) { | ^ main.cpp:56:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 56 | long long tmp = (sum[j] - query(j, index[i]) + MOD) % MOD; | ^ main.cpp:57:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 57 | dp[index[j]] = (dp[index[j]] + tmp) % MOD; | ^ main.cpp:57:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 57 | dp[index[j]] = (dp[index[j]] + tmp) % MOD; | ^ Non zero exit status: 1

Ceva nu functioneaza?