Borderou de evaluare (job #3306239)
| Utilizator | Data | 8 august 2025 17:28:01 | |
|---|---|---|---|
| Problema | Permsort | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:12:31: error: 'long long int index [1000009]' redeclared as different kind of entity
12 | ll n, i, bit[N], a[N], index[N];
| ^
In file included from /usr/include/string.h:462,
from /usr/include/c++/12.2.1/cstring:42,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/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:47:14: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
47 | index[a[i]] = i;
| ^
main.cpp:56:22: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
56 | ll vt = index[i];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
