Borderou de evaluare (job #2677659)
Utilizator | Data | 27 noiembrie 2020 06:26:10 | |
---|---|---|---|
Problema | Elmer | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:74:40: warning: left operand of comma operator has no effect [-Wunused-value]
intervale.push_back((zid[mid].x+1,zid[mid+1].x));
~~~~~~~~~~^~
main.cpp:74:56: error: no matching function for call to 'std::vector<punct>::push_back(long long int&)'
intervale.push_back((zid[mid].x+1,zid[mid+1].x));
^
In file included from /usr/include/c++/6/vector:64:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = punct; _Alloc = std::allocator<punct>; std::vector<_Tp, _Alloc>::value_type = punct]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from 'long long int' to 'const value_type& {aka const punct&}'
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = punct; _Alloc = std::allocator<punct>; std::vector<_Tp, _Alloc>::value_type = punct]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from 'long long int' to 'std::vector<punct>::value_type&& {aka punct&&}'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !