Pagini recente » Borderou de evaluare (job #1120752) | Borderou de evaluare (job #1401610) | Cod sursa (job #2501114) | Borderou de evaluare (job #1581943) | Borderou de evaluare (job #2141887)
Borderou de evaluare (job #2141887)
Raport evaluator
Compilare:
user.cpp: In function ‘void CountingSort(i32*, i32*, i32)’:
user.cpp:16:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(i32 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 ‘i32 main()’:
user.cpp:48:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (i64(v[-~i]) * A + B) % 0x367C2DC9;
^
user.cpp:55:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (i64(v[-~i]) * A + B) % 0x7CE67EF6;
^
user.cpp:62:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (i64(v[-~i]) * A + B) % 0x6F6E4E7B;
^
user.cpp: At global scope:
user.cpp:23:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void write(i32 x)
^
user.cpp:10:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(i32 A[], i32 B[], i32 digit)
^
user.cpp: In function ‘i32 main()’:
user.cpp:38: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:40: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(i32*, i32*, i32)’:
user.cpp:16:5: warning: iteration 255u invokes undefined behavior [-Waggressive-loop-optimizations]
for(i32 i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:16:24: note: containing loop
for(i32 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 | 5524kb | OK | 10 |
3 | 92ms | 13720kb | OK | 10 |
4 | 92ms | 13716kb | OK | 10 | 40 |
5 | 984ms | 87896kb | OK | 10 |
6 | 984ms | 87892kb | OK | 10 |
7 | 116ms | 13724kb | OK | 10 |
8 | 904ms | 89940kb | OK | 10 | 30 |
9 | 876ms | 89944kb | OK | 10 |
10 | 900ms | 89944kb | OK | 10 |
Punctaj total | 100 |