Pagini recente » Borderou de evaluare (job #1135231) | Borderou de evaluare (job #1464368) | Borderou de evaluare (job #639925) | Borderou de evaluare (job #1928264) | Borderou de evaluare (job #2138804)
Borderou de evaluare (job #2138804)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(int*, int*, int)’:
user.cpp:11:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:11:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void read(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: In function ‘int main()’:
user.cpp:74:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
v[i] = C > j ? j : j - j / C * C;
^
user.cpp: At global scope:
user.cpp:39:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void itoa(int x)
^
user.cpp:16:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void read(int &num)
^
user.cpp:5:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(int A[], int B[], int digit)
^
user.cpp: In function ‘void read(int&)’:
user.cpp:22:38: 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, 0x40, 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(int*, int*, int)’:
user.cpp:11:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:11:24: note: containing loop
for(int i = 0x0; i != 0x100; 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 | 84ms | 13520kb | OK | 10 |
4 | 88ms | 13524kb | OK | 10 | 40 |
5 | 900ms | 87572kb | OK | 10 |
6 | 900ms | 87576kb | OK | 10 |
7 | 108ms | 14056kb | OK | 10 |
8 | 1052ms | 89624kb | OK | 10 | 30 |
9 | 1036ms | 89624kb | OK | 10 |
10 | 1060ms | 89620kb | OK | 10 |
Punctaj total | 100 |