Borderou de evaluare (job #2730482)
Utilizator | Data | 26 martie 2021 13:36:07 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:30: error: 'int index [5000001]' redeclared as different kind of symbol
int a[5000001], index[5000001];
^
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:23:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
while(s<=d && a[i]<=a[index[d]])
^
main.cpp:28:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[d]=i;
^
main.cpp:29:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(index[s]==i-k)
^
main.cpp:35:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
suma+=a[index[s]];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !