Borderou de evaluare (job #2137769)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 01:08:39
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’: user.cpp:11:82: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(unsigned int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:11:82: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘void itoa(unsigned int)’: user.cpp:20:12: error: ‘p’ does not name a type static p = 0; ^ user.cpp:34:19: error: ‘p’ was not declared in this scope outBuffer[p + i] = x % 0xA + 0x30; ^ user.cpp:39:5: error: ‘p’ was not declared in this scope p += digits; outBuffer[p++] = 0x20; ^ user.cpp: In function ‘int main()’: user.cpp:44: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:45:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("radixsort.out", "w", stdout); ^ user.cpp:47: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?