Pagini recente » Borderou de evaluare (job #676077) | Borderou de evaluare (job #2734523) | Borderou de evaluare (job #746241) | Borderou de evaluare (job #2706847) | Borderou de evaluare (job #1743311)
Borderou de evaluare (job #1743311)
Raport evaluator
Compilare:
user.cpp: In member function ‘void MinHeap::Debug()’:
user.cpp:29:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nodes_.size(); ++i) {
^
user.cpp: In member function ‘int MinHeap::Push(int, int)’:
user.cpp:42:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In member function ‘void MinHeap::Down(int)’:
user.cpp:75:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (position < nodes_.size()) {
^
user.cpp:79:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (right_sub_node < nodes_.size() &&
^
user.cpp:83:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (best_chose < nodes_.size() &&
^
user.cpp: In member function ‘void Dijkstra::CalculateMinDistances()’:
user.cpp:114:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < edge_list_[best_node].size(); ++i) {
^
user.cpp: In member function ‘std::vector<int> Dijkstra::GetDistances()’:
user.cpp:128:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < distances.size(); ++i) {
^
user.cpp: In function ‘int main()’:
user.cpp:175: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:176: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:180:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &num_nodes, &num_edges);
^
user.cpp:185:62: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &start_node, &end_node, &edge_cost);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 500kb | OK | 10 |
2 | 0ms | 496kb | OK | 10 |
3 | 0ms | 508kb | OK | 10 |
4 | 0ms | 528kb | OK | 10 |
5 | 20ms | 1068kb | OK | 10 |
6 | 44ms | 1576kb | OK | 10 |
7 | 64ms | 1928kb | OK | 10 |
8 | 72ms | 2508kb | OK | 10 |
9 | 212ms | 5080kb | OK | 10 |
10 | 284ms | 6328kb | OK | 10 |
Punctaj total | 100 |