Pagini recente » Borderou de evaluare (job #2094356) | Borderou de evaluare (job #103994) | Borderou de evaluare (job #2175369) | Borderou de evaluare (job #571407) | Borderou de evaluare (job #2220437)
Borderou de evaluare (job #2220437)
Raport evaluator
Compilare:
user.cpp: In member function ‘Edge EdgeHeap::decapitate()’:
user.cpp:57:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while((indice << 1) + 1 < m_heap.size() &&
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
user.cpp:65:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((indice << 1) < m_heap.size())
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
user.cpp:65:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if((indice << 1) < m_heap.size())
^~
user.cpp:73:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
return result;
^~~~~~
user.cpp: In function ‘int main()’:
user.cpp:96:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < edges[1].size(); ++i)
~~^~~~~~~~~~~~~~~~~
user.cpp:110:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < edges[nextNode].size(); ++i)
~~^~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:81:37: 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:82:39: 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:84:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:85:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:89:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &firstNode);
^
user.cpp:90:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &secondNode);
^
user.cpp:91:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cost);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1904kb | OK | 10 |
2 | 0ms | 1900kb | OK | 10 |
3 | 0ms | 1932kb | OK | 10 |
4 | 4ms | 1956kb | OK | 10 |
5 | 24ms | 2316kb | OK | 10 |
6 | 52ms | 2680kb | OK | 10 |
7 | 64ms | 2868kb | OK | 10 |
8 | 164ms | 3968kb | OK | 10 |
9 | 104ms | 3284kb | OK | 10 |
10 | 332ms | 6476kb | OK | 10 |
Punctaj total | 100 |