Borderou de evaluare (job #2140381)

Utilizator inquisitorAnders inquisitor Data 23 februarie 2018 13:35:25
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:11: error: uninitialized const ‘thi’ [-fpermissive] const u32 thi, tlo; ^ user.cpp:14:16: error: uninitialized const ‘tlo’ [-fpermissive] const u32 thi, tlo; ^ user.cpp:16:11: error: uninitialized const ‘t’ [-fpermissive] const u64 t; ^ user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’: user.cpp:24:73: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:24:73: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘void read(u32&)’: user.cpp:37:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:42:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp: In function ‘i32 main()’: user.cpp:149:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i32 i = 0x1; i != N; ++i) ^ user.cpp:160:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i32 i = 0x1; i != N; ++i) ^ user.cpp:162:15: error: assignment of read-only variable ‘t’ t = A * v[~-i] + B; ^ user.cpp:164:17: error: assignment of read-only variable ‘thi’ thi = t >> 0x20, tlo = t; ^ user.cpp:164:34: error: assignment of read-only variable ‘tlo’ thi = t >> 0x20, tlo = t; ^ user.cpp:171:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i32 i = 0x1; i != N; ++i) ^ user.cpp: At global scope: user.cpp:52:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void write(u32 x) ^ user.cpp:29:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(u32 &number) ^ user.cpp:18:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void CountingSort(u32 A[], u32 B[], u32 digit) ^

Ceva nu functioneaza?