Borderou de evaluare (job #2201917)
Utilizator | Data | 6 mai 2018 15:52:36 | |
---|---|---|---|
Problema | Grade | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<n;i++){
~^~
user.cpp:25:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i.first>n-1)
~~~~~~~^~~~
user.cpp:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = n-2; i>=n-d[n-1].first-1; i--){
~^~~~~~~~~~~~~~~~~~
user.cpp:44:56: error: no matching function for call to ‘std::__cxx11::list<std::pair<int, int> >::emplace_back(<brace-enclosed initializer list>)’
E.emplace_back({d[n-1].second, d[i].second});
^
In file included from /usr/include/c++/6/list:63:0,
from user.cpp:5:
/usr/include/c++/6/bits/stl_list.h:1107:9: note: candidate: void std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]
emplace_back(_Args&&... __args)
^~~~~~~~~~~~
/usr/include/c++/6/bits/stl_list.h:1107:9: note: candidate expects 0 arguments, 1 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !