Borderou de evaluare (job #2138766)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 21:06:31
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read(unsigned int&)’: user.cpp:39:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:44: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:158:30: error: expected ‘;’ before ‘!’ token for(i = 0; i !+ adj[current.destinatie].size(); ++i) ^ user.cpp:158:62: warning: value computed is not used [-Wunused-value] for(i = 0; i !+ adj[current.destinatie].size(); ++i) ^ user.cpp:158:63: error: expected ‘)’ before ‘;’ token for(i = 0; i !+ adj[current.destinatie].size(); ++i) ^ user.cpp:158:68: error: expected ‘;’ before ‘)’ token for(i = 0; i !+ adj[current.destinatie].size(); ++i) ^ user.cpp:196:1: error: expected ‘}’ at end of input } ^ user.cpp:196:1: error: expected ‘}’ at end of input user.cpp:116:25: warning: unused variable ‘j’ [-Wunused-variable] unsigned int i, j, a, b, c; ^ user.cpp:196:1: error: expected ‘}’ at end of input } ^ user.cpp:196:1: error: expected ‘}’ at end of input user.cpp: At global scope: user.cpp:54:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void write(unsigned int x) ^ user.cpp:33:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) void read(unsigned int &num) ^ user.cpp: In function ‘void read(unsigned int&)’: user.cpp:41: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:48: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:109:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.in", "r", stdin); ^ user.cpp:110:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?