Borderou de evaluare (job #2137926)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 09:54:01
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

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:22:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:24:26: warning: the omitted middle operand in ?: will always be ‘true’, suggest explicit middle operand [-Wparentheses] ++p != 0x80000 ? : (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp:27:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp:31:26: warning: the omitted middle operand in ?: will always be ‘true’, suggest explicit middle operand [-Wparentheses] ++p != 0x80000 ? : (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp: At global scope: user.cpp:37: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:24:74: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != 0x80000 ? : (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp:31:74: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != 0x80000 ? : (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp: In function ‘int main()’: user.cpp:63:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.in", "r", stdin); ^ user.cpp:64:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.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
10ms876kbIncorect00
20ms876kbIncorect0
30ms800kbIncorect0
40ms816kbIncorect0
50ms796kbIncorect00
60ms860kbIncorect0
70ms864kbIncorect0
80ms2796kbKilled by signal 11(SIGSEGV).0
90ms876kbIncorect00
100ms756kbIncorect0
110ms4852kbIncorect0
120ms756kbIncorect0
130ms796kbIncorect00
140ms796kbIncorect0
150ms4852kbIncorect0
160ms876kbIncorect0
170ms876kbIncorect00
180ms2792kbKilled by signal 11(SIGSEGV).0
190ms880kbIncorect0
200ms2796kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?