Borderou de evaluare (job #2138152)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 13:37:46
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read(int&)’: user.cpp:79:32: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while((sign = inBuffer[p]) < 0x30 | sign > 0x39) ^ user.cpp:79:48: warning: operation on ‘sign’ may be undefined [-Wsequence-point] while((sign = inBuffer[p]) < 0x30 | sign > 0x39) ^ user.cpp:84:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while(current = inBuffer[p]) > 0x2F & current < 0x3A) ^ user.cpp:84:34: error: expected primary-expression before ‘>’ token while(current = inBuffer[p]) > 0x2F & current < 0x3A) ^ user.cpp: At global scope: user.cpp:96:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void itoa(int x) ^ user.cpp:71:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(int &num) ^ user.cpp: In function ‘void read(int&)’: user.cpp:81:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] ++p != 0x30D40 || (fread(inBuffer, 0x1, 0x30D40, stdin), p = 0x0); ^ user.cpp: In function ‘int main()’: user.cpp:124:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.in", "r", stdin); ^ user.cpp:125:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bellmanford.out", "w", stdout); ^

Ceva nu functioneaza?