Borderou de evaluare (job #2137918)

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

Raport evaluator

Compilare: user.cpp: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’: user.cpp:11:84: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(unsigned int i = 0x0; i != 0x10000; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:11:84: 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:31:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp: At global scope: user.cpp:46: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:26:47: 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, 0x8000, stdin); ^ user.cpp:37:47: 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, 0x8000, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:72: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:73: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 65535u invokes undefined behavior [-Waggressive-loop-optimizations] for(unsigned int i = 0x0; i != 0x10000; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:11:33: note: containing loop for(unsigned int i = 0x0; i != 0x10000; index[++i] = index[~-i] + frequence[~-i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms5364kbOK520
24ms5360kbOK5
34ms5364kbOK5
44ms5364kbOK5
54ms5376kbOK520
64ms5380kbOK5
74ms5372kbOK5
84ms5376kbOK5
920ms6248kbOK520
1016ms6248kbOK5
1116ms6252kbOK5
1216ms6260kbOK5
1364ms9500kbOK520
1460ms9500kbOK5
1560ms9496kbOK5
1652ms9496kbOK5
1784msDepăşitMemory limit exceeded.00
1880msDepăşitMemory limit exceeded.0
1980msDepăşitMemory limit exceeded.0
2068msDepăşitMemory limit exceeded.0
Punctaj total80

Ceva nu functioneaza?