Borderou de evaluare (job #1299901)
Utilizator | Data | 23 decembrie 2014 22:11:38 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:65: error: ‘unsigned int index [256]’ redeclared as different kind of symbol
unsigned int v[NMAX], N, backup[NMAX], counter[BASE], index[BASE];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:3:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘int main()’:
user.cpp:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=2;i<=N;i++)
^
user.cpp:36:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=N;i++)
^
user.cpp:42:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
for(index[0]=1,i=1;i<BASE;i++) //index[0]=1 da sens vect
^
user.cpp:43:11: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[i]=index[i-1]+counter[i-1];
^
user.cpp:43:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[i]=index[i-1]+counter[i-1];
^
user.cpp:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=N;i++)
^
user.cpp:47:41: error: invalid types ‘<unresolved overloaded function type>[unsigned int]’ for array subscript
v[index[(backup[i]>>shift) & (BASE-1)]]=backup[i];
^
user.cpp:48:39: error: invalid types ‘<unresolved overloaded function type>[unsigned int]’ for array subscript
index[(backup[i]>>shift) & (BASE-1)]++;
^
user.cpp:52:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=N;i+=10)
^
user.cpp:22:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,k;
^
user.cpp:22:13: warning: unused variable ‘k’ [-Wunused-variable]
int i,j,k;
^
user.cpp:26:18: warning: unused variable ‘bestN’ [-Wunused-variable]
unsigned int bestN = v[1];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !