Borderou de evaluare (job #2139704)

Utilizator inquisitorAnders inquisitor Data 22 februarie 2018 18:44:00
Problema Sortare prin comparare 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:12:62: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(; i != 0x100; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:12:62: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘void read(unsigned int&)’: user.cpp:25:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:30:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp: At global scope: user.cpp:40:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void itoa(unsigned int x) ^ user.cpp:19:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(unsigned int &num) ^ user.cpp:6: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:27:21: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != SIZE || (fread(inBuffer, 0x1, SIZE, stdin), p = 0x0); ^ user.cpp:34:21: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != SIZE || (fread(inBuffer, 0x1, SIZE, stdin), p = 0x0); ^ user.cpp: In function ‘int main()’: user.cpp:66: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:67: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms4848kbOK520
20ms4852kbOK5
30ms4852kbOK5
40ms4852kbOK5
50ms4864kbOK520
60ms4868kbOK5
70ms4860kbOK5
80ms4868kbOK5
916ms5772kbOK520
1016ms5768kbOK5
1116ms5768kbOK5
1216ms5776kbOK5
1360ms9024kbOK520
1460ms9020kbOK5
1560ms9020kbOK5
1656ms9024kbOK5
1788ms9604kbOK520
1888ms9608kbOK5
1988ms9604kbOK5
2080ms9608kbOK5
Punctaj total100

Ceva nu functioneaza?