Borderou de evaluare (job #2370663)

Utilizator Eduard24Eduard Scaueru Eduard24 Data 6 martie 2019 13:00:41
Problema Ninjago 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:56:33: error: 'nre' was not declared in this scope G[x].push_back({y,c,nre}); ^~~ main.cpp:56:37: error: no matching function for call to 'std::vector<muchie>::push_back(<brace-enclosed initializer list>)' G[x].push_back({y,c,nre}); ^ 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 = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const muchie&}' /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 = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<muchie>::value_type&& {aka muchie&&}' main.cpp:57:37: error: no matching function for call to 'std::vector<muchie>::push_back(<brace-enclosed initializer list>)' G[y].push_back({x,c,nre}); ^ 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 = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const muchie&}' /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 = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<muchie>::value_type&& {aka muchie&&}' Non zero exit status: 1

Ceva nu functioneaza?