Borderou de evaluare (job #2138939)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 23:12:12
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

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 read(unsigned int&)’: user.cpp:24:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:29:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp: In function ‘int main()’: user.cpp:124:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i != N; ++i) ^ user.cpp:135:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i != N; ++i) ^ user.cpp:156:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < N; ++i) ^ user.cpp: At global scope: user.cpp:39:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void itoa(unsigned int x) ^ user.cpp:16:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(unsigned int &num) ^ user.cpp:5:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void CountingSort(unsigned int A[], unsigned int B[], unsigned int digit) ^ user.cpp: In function ‘void read(unsigned int&)’: user.cpp:22:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(inBuffer, 0x1, 0x40, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:109: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:110: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: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’: user.cpp:11:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations] for(unsigned int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:11:33: note: containing loop for(unsigned int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms4852kbOK1030
28ms4892kbOK10
380ms13520kbOK10
480ms13528kbOK1040
5852ms87572kbOK10
6748ms87572kbOK10
792ms14060kbOK10
8980ms89624kbOK1030
9896ms89624kbOK10
10916ms89616kbOK10
Punctaj total100

Ceva nu functioneaza?