Borderou de evaluare (job #2443300)
Utilizator | Data | 27 iulie 2019 12:56:27 | |
---|---|---|---|
Problema | Minim | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:27: error: 'int index [1005]' redeclared as different kind of symbol
int n, v[1005], index[1005];
^
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:16:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = i;
^
main.cpp:42:51: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fout << sumGlobal << " " << index[stglobal] << " " << index[drglobal] << "\n";
^
main.cpp:42:77: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fout << sumGlobal << " " << index[stglobal] << " " << index[drglobal] << "\n";
^
main.cpp:49:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[z] = index[i];
^
main.cpp:49:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[z] = index[i];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !