Pagini recente » Borderou de evaluare (job #1519919) | Borderou de evaluare (job #2422875) | Borderou de evaluare (job #2489579) | Borderou de evaluare (job #2571043) | Borderou de evaluare (job #2140382)
Borderou de evaluare (job #2140382)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:20:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:20:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void read(u32&)’:
user.cpp:33:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39)
^
user.cpp:38: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:145:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 0x1; i != N; ++i)
^
user.cpp:156:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i32 i = 0x1; i != N; ++i)
^
user.cpp:167: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:48:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void write(u32 x)
^
user.cpp:25:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void read(u32 &number)
^
user.cpp:14: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:31: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:131: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:20:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:20: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 | 5520kb | OK | 10 | 30 |
2 | 8ms | 5524kb | OK | 10 |
3 | 80ms | 13716kb | OK | 10 |
4 | 80ms | 13716kb | OK | 10 | 40 |
5 | 892ms | 86284kb | OK | 10 |
6 | 756ms | 86128kb | OK | 10 |
7 | 92ms | 13716kb | OK | 10 |
8 | 928ms | 89776kb | OK | 10 | 30 |
9 | 908ms | 89200kb | OK | 10 |
10 | 924ms | 89720kb | OK | 10 |
Punctaj total | 100 |