Pagini recente » Borderou de evaluare (job #2193485) | Cod sursa (job #1967416) | Cod sursa (job #3239130) | Borderou de evaluare (job #1330962) | Borderou de evaluare (job #2146243)
Borderou de evaluare (job #2146243)
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 != 0x800; 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:50:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x367C2DC9;
^
user.cpp:57:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x7CE67EF6;
^
user.cpp:64:56: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x6F6E4E7B;
^
user.cpp:71:53: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0xF4240;
^
user.cpp:78:53: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % 0x65759;
^
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 2047u invokes undefined behavior [-Waggressive-loop-optimizations]
for(u32 i = 0x0; i != 0x800; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:18:24: note: containing loop
for(u32 i = 0x0; i != 0x800; index[++i] = index[~-i] + frequence[~-i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | Depăşit | 3024kb | Time limit exceeded. | 0 | 0 |
2 | Depăşit | 3024kb | Time limit exceeded. | 0 |
3 | Depăşit | 3024kb | Time limit exceeded. | 0 |
4 | Depăşit | 3028kb | Time limit exceeded. | 0 | 0 |
5 | 676ms | 87904kb | OK | 10 |
6 | 688ms | 87908kb | OK | 10 |
7 | Depăşit | 3024kb | Time limit exceeded. | 0 |
8 | 800ms | 89952kb | OK | 10 | 30 |
9 | 780ms | 89960kb | OK | 10 |
10 | 796ms | 89956kb | OK | 10 |
Punctaj total | 30 |