Pagini recente » Borderou de evaluare (job #1829216) | Borderou de evaluare (job #2528958) | Borderou de evaluare (job #639922) | Borderou de evaluare (job #2149819) | Borderou de evaluare (job #2141816)
Borderou de evaluare (job #2141816)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘i32 main()’:
user.cpp:42:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘u64* {aka long long unsigned int*}’ [-Wformat=]
scanf("%d %d %d %d", &N, &A, &B, &C);
^
user.cpp: At global scope:
user.cpp:25:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void write(u32 x)
^
user.cpp:12: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 ‘i32 main()’:
user.cpp:40: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:42:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &N, &A, &B, &C);
^
user.cpp: In function ‘void CountingSort(u32*, u32*, u32)’:
user.cpp:18:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(u32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:18: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 | 5532kb | OK | 10 | 30 |
2 | 8ms | 5524kb | OK | 10 |
3 | 84ms | 13716kb | OK | 10 |
4 | 84ms | 13720kb | OK | 10 | 40 |
5 | 884ms | 87896kb | OK | 10 |
6 | 888ms | 87896kb | OK | 10 |
7 | 104ms | 13716kb | OK | 10 |
8 | 900ms | 89940kb | OK | 10 | 30 |
9 | 880ms | 89940kb | OK | 10 |
10 | 900ms | 89940kb | OK | 10 |
Punctaj total | 100 |