Borderou de evaluare (job #2226762)

Utilizator inquisitorAnders inquisitor Data 30 iulie 2018 16:32:20
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int get_int()’: user.cpp:46:27: error: expected ‘)’ before ‘;’ token while(buffer[++p] > 47;) ^ user.cpp:46:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] while(buffer[++p] > 47;) ^~~~~ user.cpp:46:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’ while(buffer[++p] > 47;) ^ user.cpp:46:28: error: expected primary-expression before ‘)’ token user.cpp: At global scope: user.cpp:54:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void put_int(int x) ^~~~~~~ user.cpp:42:36: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) int get_int() ^~~~~~~ user.cpp: In function ‘int main()’: user.cpp:85:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bfs.in", "r", stdin); ^ user.cpp:87:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buffer, 1, 12500000, stdin); ^ user.cpp:118:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bfs.out", "w", stdout); ^

Ceva nu functioneaza?