Pagini recente » Borderou de evaluare (job #588225) | Borderou de evaluare (job #257225) | Borderou de evaluare (job #233474) | Cod sursa (job #2344599) | Borderou de evaluare (job #2139408)
Borderou de evaluare (job #2139408)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:16:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:16:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void read(u32&)’:
user.cpp:29:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39)
^
user.cpp:34: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:117:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 0x1; i != N; ++i)
^
user.cpp:128:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 1; i != N; ++i)
^
user.cpp:139: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:44:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void write(u32 x)
^
user.cpp:21:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void read(u32 &number)
^
user.cpp:10: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:27: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:97: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: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:16:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:16: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 | 5528kb | OK | 10 | 30 |
2 | 8ms | 5528kb | OK | 10 |
3 | 80ms | 13712kb | OK | 10 |
4 | 80ms | 13716kb | OK | 10 | 40 |
5 | 848ms | 87900kb | OK | 10 |
6 | 756ms | 87896kb | OK | 10 |
7 | 92ms | 13716kb | OK | 10 |
8 | 920ms | 89944kb | OK | 10 | 30 |
9 | 904ms | 89948kb | OK | 10 |
10 | 924ms | 89948kb | OK | 10 |
Punctaj total | 100 |