Borderou de evaluare (job #2647860)
Utilizator | Data | 6 septembrie 2020 19:39:31 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:59: error: 'int index [100001]' redeclared as different kind of symbol
int n, x, k, seqSize, v[100001], seq[100001], index[100001], ans[100001];
^
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int main()':
main.cpp:33:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[0] = 0;
^
main.cpp:40:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = seqSize;
^
main.cpp:46:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = pos;
^
main.cpp:51:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[i] == seqSize)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !