Borderou de evaluare (job #1309532)
Utilizator | Data | 5 ianuarie 2015 20:26:14 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:1: error: ‘ifstream’ does not name a type
ifstream in ("dijkstra.in");
^
user.cpp:17:1: error: ‘ofstream’ does not name a type
ofstream out ("dijkstra.out");
^
user.cpp: In function ‘void Read()’:
user.cpp:29:5: error: ‘in’ was not declared in this scope
in >> N >> M ;
^
user.cpp:32:14: error: request for member ‘push_back’ in ‘Graph’, which is of non-class type ‘std::vector<std::pair<int, int> > [50005]’
Graph.push_back(make_pair(final_node,cost));
^
user.cpp: In function ‘void MakeDijstra()’:
user.cpp:38:18: error: ‘class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >’ has no member named ‘push_back’
Dijkstra_Heap.push_back(make_pair(0,1));
^
user.cpp:41:27: error: ‘class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >’ has no member named ‘first’
cost = Dijkstra_Heap.first();
^
user.cpp:42:27: error: ‘class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >’ has no member named ‘second’
node = Dijkstra_Heap.second();
^
user.cpp: In function ‘void PutSol()’:
user.cpp:53:7: error: ‘out’ was not declared in this scope
out << ( Cost[i] != INF ? Cost[i] : 0 ) << " ";
^
user.cpp: In function ‘int main()’:
user.cpp:60:18: error: ‘MakeDijkstra’ was not declared in this scope
MakeDijkstra();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !