Borderou de evaluare (job #1138092)
Utilizator | Data | 9 martie 2014 14:59:48 | |
---|---|---|---|
Problema | Talent | Status | done |
Runda | ONIS 2014, Runda 3 | Compilator | cpp |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:60:68: error: no matching function for call to ‘std::vector<segm>::push_back(int, int)’
if (l <= 1440 && r <= 1440) sp.push_back(l+1440, r+1440);
^
user.cpp:60:68: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:5:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = segm; _Alloc = std::allocator<segm>; std::vector<_Tp, _Alloc>::value_type = segm]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: candidate expects 1 argument, 2 provided
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = segm; _Alloc = std::allocator<segm>; std::vector<_Tp, _Alloc>::value_type = segm]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: candidate expects 1 argument, 2 provided
user.cpp:61:66: error: no matching function for call to ‘std::vector<segm>::push_back(int, int)’
if (l > 1440 && r > 1440) sp.push_back(l-1440, r-1440);
^
user.cpp:61:66: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:5:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = segm; _Alloc = std::allocator<segm>; std::vector<_Tp, _Alloc>::value_type = segm]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: candidate expects 1 argument, 2 provided
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = segm; _Alloc = std::allocator<segm>; std::vector<_Tp, _Alloc>::value_type = segm]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: candidate expects 1 argument, 2 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !