Borderou de evaluare (job #2675678)
Utilizator | Data | 22 noiembrie 2020 12:25:15 | |
---|---|---|---|
Problema | Binar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:19: error: 'int index [2001]' redeclared as different kind of symbol
int index[NMAX + 1];
^
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:31:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[j] = j;
^
main.cpp:32:22: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
sort( index, index + m, cmp );
~~~~~~^~~
main.cpp:34:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fout << index[i] + 1 << " ";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !