Borderou de evaluare (job #1842234)
| Utilizator | Data | 6 ianuarie 2017 18:12:11 | |
|---|---|---|---|
| Problema | 3color | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Dijkstra()’:
user.cpp:16:7: error: no match for ‘operator=’ (operand types are ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ and ‘<unresolved overloaded function type>’)
for(it=V[1].begin;it!=V[1].end();it++)
^
user.cpp:16:7: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&)
class __normal_iterator
^
/usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&’
/usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&)
/usr/include/c++/4.8/bits/stl_iterator.h:708:11: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&’
user.cpp:17:19: error: no matching function for call to ‘std::vector<int>::push_back(std::vector<int>::iterator&)’
D.push_back(it);
^
user.cpp:17:19: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ to ‘const value_type& {aka const int&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ to ‘std::vector<int>::value_type&& {aka int&&}’
user.cpp:19:1: error: ‘d’ was not declared in this scope
d[1]=0;
^
user.cpp:34:26: error: ‘a’ was not declared in this scope
if(d[i]>d[k]+a[k][i]&&viz[i]==0)
^
user.cpp:13:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,ok,mini,k;
^
user.cpp: In function ‘int main()’:
user.cpp:53:9: error: ‘a’ was not declared in this scope
a[i][j]=cmax;
^
user.cpp:57:39: error: no matching function for call to ‘std::vector<int>::push_back(std::pair<int, int>)’
V[x].push_back(make_pair(y, z));
^
user.cpp:57:39: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:4:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
