Borderou de evaluare (job #2146559)
Utilizator | Data | 28 februarie 2018 01:30:33 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void CountingSort1()’:
user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:18:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void CountingSort2()’:
user.cpp:29:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:29:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void CountingSort3()’:
user.cpp:40:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(u32 i = 0x0; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:40:73: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘i32 main()’:
user.cpp:77:9: error: expected ‘,’ or ‘;’ before ‘v’
v[i] = j < C ? j : j % C;
^
user.cpp:75:13: warning: unused variable ‘j’ [-Wunused-variable]
u64 j = u64(v[-~--i]) * A + B % C
^
user.cpp: At global scope:
user.cpp:47:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void itoa(unsigned int x)
^
user.cpp:34:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort3()
^
user.cpp:23:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort2()
^
user.cpp:12:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort1()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !