Borderou de evaluare (job #2466052)
Utilizator | Data | 1 octombrie 2019 12:20:42 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:20: error: 'int index [256]' redeclared as different kind of symbol
int index[countsize];
^
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:2:
/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 'void sort(int*, int)':
main.cpp:28:35: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(index, 0, sizeof(index));
^
main.cpp:28:36: error: cannot resolve overloaded function 'index' based on conversion to type 'void*'
memset(index, 0, sizeof(index));
^
main.cpp:43:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[i] = count;
^
main.cpp:53:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
temp[index[pos]] = input[i];
^
main.cpp:54:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[pos]++;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !