Borderou de evaluare (job #2144774)

Utilizator inquisitorAnders inquisitor Data 26 februarie 2018 21:56:03
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’: user.cpp:13:62: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(; i != 0x800; index[++i] = index[~-i] + frequence[~-i]); ^ user.cpp:13:62: 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: 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:18:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(unsigned int &num) ^ user.cpp:7: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:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp:33:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0); ^ user.cpp: In function ‘int main()’: user.cpp:61: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms5548kbOK520
20ms5544kbOK5
30ms5540kbOK5
40ms5548kbOK5
50ms5556kbOK520
60ms5560kbOK5
70ms5560kbOK5
80ms5564kbOK5
916ms7964kbOK520
1016ms7964kbOK5
1116ms7968kbOK5
1216ms7968kbOK5
1356msDepăşitMemory limit exceeded.00
1452msDepăşitMemory limit exceeded.0
1552msDepăşitMemory limit exceeded.0
1652msDepăşitMemory limit exceeded.0
1772msDepăşitMemory limit exceeded.00
1868msDepăşitMemory limit exceeded.0
1968msDepăşitMemory limit exceeded.0
2064msDepăşitMemory limit exceeded.0
Punctaj total60

Ceva nu functioneaza?