Borderou de evaluare (job #1834507)
Utilizator | Data | 24 decembrie 2016 18:15:47 | |
---|---|---|---|
Problema | Vis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool notvizited(int, int, int, int)’:
user.cpp:28:30: error: ‘typ2’ was not declared in this scope
else if (k1==0 && k2<inf) typ2=2;
^
user.cpp:31:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<viz[x][y].size(); ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:70:47: error: no matching function for call to ‘std::vector<short int>::push_back(std::pair<int, int>)’
viz[x][y].push_back(make_pair(k1,k2));
^
user.cpp:70:47: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/bits/random.h:34,
from /usr/include/c++/4.8/random:50,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = short int; _Alloc = std::allocator<short int>; std::vector<_Tp, _Alloc>::value_type = short 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::pair<int, int>’ to ‘const value_type& {aka const short 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 = short int; _Alloc = std::allocator<short int>; std::vector<_Tp, _Alloc>::value_type = short 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::pair<int, int>’ to ‘std::vector<short int>::value_type&& {aka short int&&}’
user.cpp:75:47: error: no matching function for call to ‘std::vector<short int>::push_back(std::pair<int, int>)’
viz[x][y].push_back(make_pair(k1,k2));
^
user.cpp:75:47: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/bits/random.h:34,
from /usr/include/c++/4.8/random:50,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = short int; _Alloc = std::allocator<short int>; std::vector<_Tp, _Alloc>::value_type = short 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::pair<int, int>’ to ‘const value_type& {aka const short 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 = short int; _Alloc = std::allocator<short int>; std::vector<_Tp, _Alloc>::value_type = short 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::pair<int, int>’ to ‘std::vector<short int>::value_type&& {aka short int&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !