Borderou de evaluare (job #2400445)
Utilizator | Data | 8 aprilie 2019 19:03:33 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int* Dijkstra(std::vector<std::pair<int, int> >, int, int, int)':
main.cpp:36:30: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka struct std::pair<int, int>}' has no member named 'size'
for(int j=0;j<v[nod].size();j++)
^~~~
main.cpp:27:17: warning: unused variable 'nod' [-Wunused-variable]
int index=1,nod;
^~~
main.cpp: In function 'int main()':
main.cpp:69:16: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
cout<<v[0].first<<' '<<v[0].second;
^~~~~
main.cpp:69:33: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'; did you mean 'end'?
cout<<v[0].first<<' '<<v[0].second;
^~~~~~
main.cpp:85:30: error: could not convert '(std::vector<std::pair<int, int> >*)(& v)' from 'std::vector<std::pair<int, int> >*' to 'std::vector<std::pair<int, int> >'
new_dist=Dijkstra(v,N,M,S);
^
main.cpp:70:17: warning: unused variable 'j' [-Wunused-variable]
int N,M,S,i,j;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !