Borderou de evaluare (job #2352676)
Utilizator | Data | 23 februarie 2019 16:20:44 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:28:7: error: 'list' in namespace 'std' does not name a template type
std::list < iPair >* Noduri;
^~~~
main.cpp: In constructor 'Graph::Graph(int)':
main.cpp:35:3: error: 'Noduri' was not declared in this scope
Noduri = new std::list < iPair > [verticesNumber];
^~~~~~
main.cpp:35:21: error: 'list' in namespace 'std' does not name a template type
Noduri = new std::list < iPair > [verticesNumber];
^~~~
main.cpp:35:34: error: expected primary-expression before '>' token
Noduri = new std::list < iPair > [verticesNumber];
^
main.cpp: In lambda function:
main.cpp:35:52: error: expected '{' before ';' token
Noduri = new std::list < iPair > [verticesNumber];
^
main.cpp: In member function 'void Graph::AddEdge(int, int, int)':
main.cpp:40:3: error: 'Noduri' was not declared in this scope
Noduri[vertex1].push_back(std::make_pair(vertex2, cost));
^~~~~~
main.cpp: In member function 'void Graph::PrimMST()':
main.cpp:84:3: error: 'list' is not a member of 'std'
std::list < iPair > ::iterator i;
^~~
main.cpp:84:21: error: expected primary-expression before '>' token
std::list < iPair > ::iterator i;
^
main.cpp:84:23: error: '::iterator' has not been declared
std::list < iPair > ::iterator i;
^~
main.cpp:84:23: note: suggested alternatives:
In file included from /usr/include/c++/6/bits/stl_algobase.h:65:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:3:
/usr/include/c++/6/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
struct iterator
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
main.cpp:86:8: error: 'i' was not declared in this scope
for (i = Noduri[vertex].begin(); i != Noduri[vertex].end(); ++i)
^
main.cpp:86:12: error: 'Noduri' was not declared in this scope
for (i = Noduri[vertex].begin(); i != Noduri[vertex].end(); ++i)
^~~~~~
main.cpp: In function 'int main()':
main.cpp:128:2: error: 'cin' is not a member of 'std'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !