Borderou de evaluare (job #3298006)

Utilizator Luca_georgescuLucageorgescu Luca_georgescu Data 25 mai 2025 20:38:23
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void sterge(std::string)': main.cpp:47:23: error: no matching function for call to 'std::vector<std::pair<trie*, int> >::push_back(trie*&, int&)' 47 | path.push_back(curr,i); | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:64, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<trie*, int>; _Alloc = std::allocator<std::pair<trie*, int> >; value_type = std::pair<trie*, int>]' 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate expects 1 argument, 2 provided /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<trie*, int>; _Alloc = std::allocator<std::pair<trie*, int> >; value_type = std::pair<trie*, int>]' 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate expects 1 argument, 2 provided Non zero exit status: 1

Ceva nu functioneaza?