Borderou de evaluare (job #2063874)

Utilizator vladm98Munteanu Vlad vladm98 Data 11 noiembrie 2017 16:02:33
Problema Calafat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main(int, const char**)’: user.cpp:62:31: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(int&, int&)’ Queries[b].push_back(a, i); ^ user.cpp:62:31: 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 /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from user.cpp:1: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: candidate expects 1 argument, 2 provided /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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: candidate expects 1 argument, 2 provided user.cpp:69:7: error: ‘ans’ was not declared in this scope ans[x.second] = intervalQuery(x.first, i); ^ user.cpp:72:14: error: ‘ans’ was not declared in this scope fout << ans[i] << '\n'; ^

Ceva nu functioneaza?