Borderou de evaluare (job #2221256)
Utilizator | Data | 13 iulie 2018 15:27:21 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void CountingSort(size_t, size_t*, size_t*, size_t)’:
user.cpp:18:43: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(size_t i = 0x0; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]);
^~~
user.cpp:18:43: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘i32 main()’:
user.cpp:49:48: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 2 has type ‘u32* {aka unsigned int*}’ [-Wformat=]
scanf("%llu %llu %llu %llu", &N, &A, &B, &C);
^
user.cpp:49:48: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘u32* {aka unsigned int*}’ [-Wformat=]
user.cpp:49:48: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 4 has type ‘u32* {aka unsigned int*}’ [-Wformat=]
user.cpp:49:48: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 5 has type ‘u32* {aka unsigned int*}’ [-Wformat=]
user.cpp:57:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * 0x3D + 0x9) % 0x367C2DC9;
^~~
user.cpp:64:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * 0xF + 0x3C) % 0x7CE67EF6;
^~~
user.cpp:71:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * 0x2E + 0x22) % 0x6F6E4E7B;
^~~
user.cpp:78:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * 0x53 + 0x2E) % 0xF4240;
^~~
user.cpp:85:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * 0x1E + 0xE) % 0x65759;
^~~
user.cpp:92:15: warning: operation on ‘i’ may be undefined [-Wsequence-point]
v[--i] = (u64(v[-~i]) * A + B) % C;
^~~
user.cpp:100:52: error: ‘itoa’ was not declared in this scope
for(u32 i = 0x0; i != N; i = i + 0xA) itoa(w[i]);
^
user.cpp: At global scope:
user.cpp:25:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void put_number(size_t x)
^~~~~~~~~~
user.cpp:12:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(size_t N, size_t A[], size_t B[], size_t digit)
^~~~~~~~~~~~
user.cpp: In function ‘i32 main()’:
user.cpp:47:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.out", "w", stdout);
^
user.cpp:49:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu %llu %llu %llu", &N, &A, &B, &C);
^
user.cpp:102:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !