Borderou de evaluare (job #2787436)
Utilizator | Data | 23 octombrie 2021 12:13:40 | |
---|---|---|---|
Problema | PermutariAB | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:60: error: 'int index [100005]' redeclared as different kind of entity
6 | int aib[100005], a[100005], b[100005], ans, n, index[100005];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/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:28:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
28 | index[a[i]] = i;
| ^
main.cpp:32:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
32 | ans+= index[b[i]] + query(index[b[i]]) - i;
| ^
main.cpp:32:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
32 | ans+= index[b[i]] + query(index[b[i]]) - i;
| ^
main.cpp:33:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
33 | update(index[b[i]]);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !