Borderou de evaluare (job #2220700)
Utilizator | Data | 12 iulie 2018 13:17:31 | |
---|---|---|---|
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(int*, int*, int)’:
user.cpp:11:29: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]);
^~~
user.cpp:11:29: warning: operation on ‘i’ may be undefined [-Wsequence-point]
user.cpp: In function ‘int main()’:
user.cpp:63:35: error: ‘memset’ was not declared in this scope
memset(outBuffer, 32, 0x4C4B3F);
^
user.cpp: At global scope:
user.cpp:41:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void itoa(int x)
^~~~
user.cpp:16:36: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) int get_nr()
^~~~~~
user.cpp:5:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void CountingSort(int A[], int B[], int digit)
^~~~~~~~~~~~
user.cpp: In function ‘int get_nr()’:
user.cpp:24:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
++p == 0x8000 && (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:31:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
++p == 0x8000 && (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:65: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:66: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 !