Borderou de evaluare (job #2220501)

Utilizator inquisitorAnders inquisitor Data 11 iulie 2018 23:34:41
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int read(unsigned int)’: user.cpp:29:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ~~~~~~~~~~~~^~~~~~ user.cpp:34:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ~~~~~~~~~~~~^~~~~~ user.cpp: In function ‘int main()’: user.cpp:53:14: error: too few arguments to function ‘int read(unsigned int)’ T = read(); ^ user.cpp:25:36: note: declared here __attribute__((always_inline)) int read(unsigned int num) ^~~~ user.cpp:57:18: error: too few arguments to function ‘int read(unsigned int)’ a = read(); ^ user.cpp:25:36: note: declared here __attribute__((always_inline)) int read(unsigned int num) ^~~~ user.cpp:59:18: error: too few arguments to function ‘int read(unsigned int)’ b = read(); ^ user.cpp:25:36: note: declared here __attribute__((always_inline)) int read(unsigned int num) ^~~~ user.cpp: At global scope: user.cpp:25:36: warning: always_inline function might not be inlinable [-Wattributes] user.cpp: In function ‘int read(unsigned int)’: 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:38: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:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid2.in", "r", stdin); ^ user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid2.out", "w", stdout); ^

Ceva nu functioneaza?