Borderou de evaluare (job #2137941)
Utilizator | Data | 21 februarie 2018 10:06:11 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void CountingSort(unsigned int*, unsigned int*, unsigned int)’:
user.cpp:11:82: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(unsigned int i = 0x0; i != 0x100; index[++i] = index[~-i] + frequence[~-i]);
^
user.cpp:11:82: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘void read(unsigned int&)’:
user.cpp:22:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39)
^
user.cpp:24:42: error: too few arguments to function ‘long int __builtin_expect(long int, long int)’
if(__builtin_expect(++p != 0x8000), 0)
^
<built-in>: note: declared here
user.cpp:32:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A)
^
user.cpp:36:42: error: too few arguments to function ‘long int __builtin_expect(long int, long int)’
if(__builtin_expect(++p != 0x8000), 0)
^
<built-in>: note: declared here
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:16:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void read(unsigned int &num)
^
user.cpp:5:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(unsigned int A[], unsigned int B[], unsigned int digit)
^
user.cpp: In function ‘int main()’:
user.cpp:73:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("algsort.in", "r", stdin);
^
user.cpp:74:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("algsort.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !