Borderou de evaluare (job #2136998)

Utilizator inquisitorAnders inquisitor Data 20 februarie 2018 15:18:11
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void RadixSort(uint32_t*, uint32_t, uint32_t)’: user.cpp:13:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = begin; i != end; ++i) ^ user.cpp: In function ‘void itoa(uint32_t)’: user.cpp:42:69: warning: operation on ‘y’ may be undefined [-Wsequence-point] outBuffer[p - ++i] = x - (y << 1) - ((y = x / 10) << 3) + 48; ^ user.cpp:44:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] }while(x = y); ^ user.cpp: In function ‘int main()’: user.cpp:51: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:52: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:54: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); ^ user.cpp:42:69: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] outBuffer[p - ++i] = x - (y << 1) - ((y = x / 10) << 3) + 48; ^ user.cpp:36:14: note: ‘y’ was declared here uint32_t y, i = 0; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms3260kbIncorect00
28ms3700kbIncorect0
3104ms9732kbIncorect0
4104ms9704kbIncorect00
51144ms84896kbIncorect0
61208ms83784kbIncorect0
7132ms9488kbIncorect0
81356ms82672kbIncorect00
91376ms82708kbIncorect0
101380ms82468kbIncorect0
Punctaj total0

Ceva nu functioneaza?