Pagini recente » Borderou de evaluare (job #3121302) | Borderou de evaluare (job #3215299) | Borderou de evaluare (job #3244009) | Borderou de evaluare (job #3175647) | Borderou de evaluare (job #1742264)
Borderou de evaluare (job #1742264)
Raport evaluator
Compilare:
user.cpp: In member function ‘void MinHeap::Debug()’:
user.cpp:28: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:41:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In member function ‘void MinHeap::Down(int)’:
user.cpp:72:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (position < nodes_.size()) {
^
user.cpp:76:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (right_sub_node < nodes_.size() && nodes_[right_sub_node].second < nodes_[left_sub_node].second) {
^
user.cpp:79:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (best_chose < nodes_.size() && nodes_[best_chose].second < nodes_[position].second) {
^
user.cpp: In member function ‘void Dijkstra::CalculateMinDistances()’:
user.cpp:107: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:121: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:154: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:155: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:159: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:164: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 | 436kb | OK | 10 |
2 | 0ms | 436kb | OK | 10 |
3 | 0ms | 484kb | Incorect | 0 |
4 | 0ms | 512kb | Incorect | 0 |
5 | 20ms | 1044kb | Incorect | 0 |
6 | 44ms | 1556kb | Incorect | 0 |
7 | 60ms | 1900kb | Incorect | 0 |
8 | 72ms | 2480kb | OK | 10 |
9 | 212ms | 5060kb | Incorect | 0 |
10 | 280ms | 6328kb | Incorect | 0 |
Punctaj total | 30 |