Pagini recente » Borderou de evaluare (job #1093463) | Borderou de evaluare (job #170064) | Borderou de evaluare (job #1060028) | Borderou de evaluare (job #1519246) | Borderou de evaluare (job #2138790)
Borderou de evaluare (job #2138790)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’:
user.cpp:11:78: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(unsigned int i = 0; i != 256; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:11:78: 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] < 48 | inBuffer[p] > 57)
^
user.cpp:29:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while(inBuffer[p] > 47 & inBuffer[p] < 58)
^
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: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:22:34: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(inBuffer, 1, 64, stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:63:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.in", "r", stdin);
^
user.cpp:64:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.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 = 0; i != 256; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:11:31: note: containing loop
for(unsigned int i = 0; i != 256; index[++i] = index[~-i] + frequence[~-i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 4856kb | OK | 10 | 30 |
2 | 8ms | 4896kb | OK | 10 |
3 | 80ms | 13524kb | OK | 10 |
4 | 84ms | 13528kb | OK | 10 | 40 |
5 | 896ms | 87576kb | OK | 10 |
6 | 884ms | 87572kb | OK | 10 |
7 | 108ms | 14056kb | OK | 10 |
8 | 1048ms | 89620kb | OK | 10 | 30 |
9 | 1024ms | 89624kb | OK | 10 |
10 | 1052ms | 89624kb | OK | 10 |
Punctaj total | 100 |