Borderou de evaluare (job #2141730)

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

Raport evaluator

Compilare: user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’: user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: At global scope: user.cpp:25:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void write(u32 x) ^ user.cpp:12:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void CountingSort(u32 A[], u32 B[], u32 digit) ^ user.cpp: In function ‘i32 main()’: user.cpp:40: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:42: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(u32*, u32*, u32)’: user.cpp:18:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations] for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:18:24: note: containing loop for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms4908kbKilled by signal 11(SIGSEGV).00
28ms4912kbKilled by signal 11(SIGSEGV).0
380ms13104kbKilled by signal 11(SIGSEGV).0
484ms13104kbKilled by signal 11(SIGSEGV).00
5864ms86396kbKilled by signal 11(SIGSEGV).0
6864ms86396kbKilled by signal 11(SIGSEGV).0
7104ms13104kbKilled by signal 11(SIGSEGV).0
8876ms89164kbKilled by signal 11(SIGSEGV).00
9852ms88588kbKilled by signal 11(SIGSEGV).0
10876ms89104kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?