Borderou de evaluare (job #3244432)
Utilizator | Data | 24 septembrie 2024 19:43:30 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:41: error: 'int index [100005]' redeclared as different kind of entity
4 | int a[100005], len[100005], index[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:18:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
18 | len[i] = len[j] + 1, index[i] = j;
| ^
main.cpp:29:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
29 | pos = index[pos];
| ^
main.cpp:34:27: error: request for member 'size' in 'a', which is of non-class type 'int [100005]'
34 | for (int i = 0; i < a.size(); ++i)
| ^~~~
main.cpp:35:17: error: 'x' was not declared in this scope
35 | cout << x << " ";
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !