Borderou de evaluare (job #2539086)

Utilizator PetyAlexandru Peticaru Pety Data 5 februarie 2020 16:44:10
Problema Nivele 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:22:17: error: no matching function for call to 'std::vector<int>::push_back()' v.push_back(); ^ In file included from /usr/include/c++/6/vector:64:0, from /usr/include/c++/6/queue:61, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate expects 1 argument, 0 provided /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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate expects 1 argument, 0 provided main.cpp:7:11: error: 'second' was not declared in this scope #define s second ^ main.cpp:23:31: note: in expansion of macro 's' while (v.size() >= 2 && v[s.size() - 2] == v.back()) { ^ Non zero exit status: 1

Ceva nu functioneaza?