Borderou de evaluare (job #2137785)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 01:24:51
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void CountingSort(uint_fast32_t*, uint_fast32_t*, uint_fast32_t)’: user.cpp:12:83: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(uint_fast32_t i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:12:83: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘int main()’: user.cpp:46:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘uint_fast32_t* {aka long unsigned int*}’ [-Wformat=] scanf("%d %d %d %d", &N, &A, &B, &C); ^ user.cpp:46:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘uint_fast32_t* {aka long unsigned int*}’ [-Wformat=] user.cpp:46:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘uint_fast32_t* {aka long unsigned int*}’ [-Wformat=] user.cpp:46:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘uint_fast32_t* {aka long unsigned int*}’ [-Wformat=] user.cpp:43: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:44: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:46: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: In function ‘void CountingSort(uint_fast32_t*, uint_fast32_t*, uint_fast32_t)’: user.cpp:12:5: warning: iteration 255ul invokes undefined behavior [-Waggressive-loop-optimizations] for(uint_fast32_t i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:12:34: note: containing loop for(uint_fast32_t i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms4920kbOK1030
212ms9052kbOK10
3104ms21780kbOK10
4104ms21780kbOK100
5496msDepăşitMemory limit exceeded.0
6496msDepăşitMemory limit exceeded.0
7128ms22312kbOK10
8496msDepăşitMemory limit exceeded.00
9496msDepăşitMemory limit exceeded.0
10496msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?