Borderou de evaluare (job #2142997)

Utilizator inquisitorAnders inquisitor Data 25 februarie 2018 14:16:20
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:23:24: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p0] < 0x30 | inBuffer[p0] > 0x39) ^ user.cpp:28:24: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p0] > 0x2F & inBuffer[p0] < 0x3A) ^ user.cpp: In function ‘void write(unsigned int)’: user.cpp:48:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while(x = x / 0xA); ^ user.cpp: At global scope: user.cpp:40:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void write(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:25:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p0 != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p0 = 0x0); ^ user.cpp:32:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p0 != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p0 = 0x0); ^ user.cpp: In function ‘int main()’: user.cpp:53: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:54: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
10ms4852kbOK520
20ms4848kbOK5
30ms4848kbOK5
40ms4848kbOK5
50ms4844kbOK520
60ms4848kbOK5
70ms4844kbOK5
80ms4852kbOK5
916ms4848kbOK520
1016ms4848kbOK5
1116ms4848kbOK5
1216ms4848kbOK5
1360ms7764kbOK520
1456ms7764kbOK5
1556ms7756kbOK5
1652ms7760kbOK5
1788ms9340kbOK520
1888ms9336kbOK5
1988ms9336kbOK5
2080ms9432kbOK5
Punctaj total100

Ceva nu functioneaza?