Borderou de evaluare (job #2138320)

Utilizator inquisitorAnders inquisitor Data 21 februarie 2018 15:52:54
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void read(unsigned int&)’: user.cpp:15:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39) ^ user.cpp:20:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A) ^ user.cpp: In function ‘void bell()’: user.cpp:102:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1; i<=nodes; i++) d[i] = oo; ^ user.cpp:109:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i<=edges;++i) ^ user.cpp:117:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else for(i=2;i<=nodes;++i) ^ user.cpp: In function ‘void read()’: user.cpp:126:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= edges; ++i) ^ user.cpp: In function ‘int main()’: user.cpp:138:21: warning: unused variable ‘j’ [-Wunused-variable] unsigned int i, j, a, b, c; ^ user.cpp: At global scope: user.cpp:9: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:17: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:24: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:133:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.out", "w", stdout); ^ user.cpp:134: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms3804kbOK10
24ms3804kbOK10
34ms3824kbOK10
44ms3832kbOK10
58ms4040kbOK10
612ms4064kbOK10
716ms4088kbOK10
824ms4124kbOK10
948ms6140kbIncorect0
1060ms5416kbOK10
Punctaj total90

Ceva nu functioneaza?