Borderou de evaluare (job #2143204)
Utilizator | Data | 25 februarie 2018 17:47:36 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void RadixSort(int*, int, int)’:
user.cpp:14:5: error: ‘queue’ was not declared in this scope
queue<int> bucket[256];
^
user.cpp:14:11: error: expected primary-expression before ‘int’
queue<int> bucket[256];
^
user.cpp:20:13: error: ‘bucket’ was not declared in this scope
bucket[(v[i] >> j) & 255].push(v[i]);
^
user.cpp:27:20: error: ‘bucket’ was not declared in this scope
while(!bucket[i].empty())
^
user.cpp: In function ‘i32 main()’:
user.cpp:64:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x367C2DC9;
^
user.cpp:71:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x7CE67EF6;
^
user.cpp:78:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x6F6E4E7B;
^
user.cpp:91:24: error: invalid conversion from ‘u32* {aka unsigned int*}’ to ‘int*’ [-fpermissive]
RadixSort(v, 0, ~-N);
^
user.cpp:12:6: note: initializing argument 1 of ‘void RadixSort(int*, int, int)’
void RadixSort(int v[], int left, int right)
^
user.cpp: At global scope:
user.cpp:39:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void write(u32 x)
^
user.cpp: In function ‘i32 main()’:
user.cpp:54:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.in", "r", stdin);
^
user.cpp:56:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &N, &A, &B, &C);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !