Borderou de evaluare (job #3041731)
Utilizator | Data | 1 aprilie 2023 13:03:33 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:36: error: 'int index [100005]' redeclared as different kind of entity
6 | int n, before[100005], index[100005], p, v[100005], ans, dp[100005];
| ^
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:25:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
25 | index[ans] = i;
| ^
main.cpp:26:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
26 | before[i] = index[ans - 1];
| ^
main.cpp:31:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
31 | index[p] = i;
| ^
main.cpp:32:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
32 | before[i] = index[p - 1];
| ^
main.cpp:36:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
36 | findd(index[ans]);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !