Borderou de evaluare (job #2220797)

Utilizator inquisitorAnders inquisitor Data 12 iulie 2018 15:46:59
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*, unsigned int)’: user.cpp:10:49: warning: operation on ‘i’ may be undefined [-Wsequence-point] for(unsigned int i = 0x0; i != 0x7FF; index[++i] = index[~-i] + frequence[~-i]); ^~~ user.cpp:10:49: warning: operation on ‘i’ may be undefined [-Wsequence-point] user.cpp: In function ‘void put_number(unsigned int)’: user.cpp:40:17: warning: variable ‘outBuffer’ set but not used [-Wunused-but-set-variable] static char outBuffer[0x4C4B40]; ^~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:87:12: error: ‘outBuffer’ was not declared in this scope fwrite(outBuffer, 0x1, p, stdout); ^~~~~~~~~ user.cpp:87:28: error: ‘p’ was not declared in this scope fwrite(outBuffer, 0x1, p, stdout); ^ user.cpp: At global scope: user.cpp:38:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void put_number(unsigned int x) ^~~~~~~~~~ user.cpp:15:45: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) unsigned int get_number() ^~~~~~~~~~ user.cpp:4:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void CountingSort(unsigned int N, unsigned int A[], unsigned int B[], unsigned int digit) ^~~~~~~~~~~~ user.cpp: In function ‘unsigned int get_number()’: user.cpp:23: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:30: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:64: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:65: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?