Pagini recente » Borderou de evaluare (job #1142243) | Borderou de evaluare (job #1800526) | Borderou de evaluare (job #948543) | Borderou de evaluare (job #1987656) | Borderou de evaluare (job #2138973)
Borderou de evaluare (job #2138973)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:15:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:15:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void read(u32&)’:
user.cpp:28:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39)
^
user.cpp:33:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A)
^
user.cpp: In function ‘i32 main()’:
user.cpp:143:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 0x1; i != N; ++i)
^
user.cpp:154:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 1; i != N; ++i)
^
user.cpp:165:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 0x1; i != N; ++i)
^
user.cpp: At global scope:
user.cpp:43:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void itoa(u32 x)
^
user.cpp:20:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void read(u32 &number)
^
user.cpp:9:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(u32 A[], u32 B[], u32 digit)
^
user.cpp: In function ‘void read(u32&)’:
user.cpp:26: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 ‘i32 main()’:
user.cpp:128: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:129: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(u32*, u32*, u32)’:
user.cpp:15:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:15:24: note: containing loop
for(u32 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 | 4892kb | OK | 10 |
3 | 80ms | 13524kb | OK | 10 |
4 | 80ms | 13524kb | OK | 10 | 40 |
5 | 864ms | 87572kb | OK | 10 |
6 | 748ms | 87572kb | OK | 10 |
7 | 92ms | 14060kb | OK | 10 |
8 | 924ms | 89620kb | OK | 10 | 30 |
9 | 896ms | 89620kb | OK | 10 |
10 | 920ms | 89620kb | OK | 10 |
Punctaj total | 100 |