Borderou de evaluare (job #2916759)

Utilizator livliviLivia Magureanu livlivi Data 1 august 2022 13:31:51
Problema Cerere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int*, std::vector<std::vector<int> >&, std::vector<int>&, int*)': main.cpp:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | for (int i = 0; i < v[nod].size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp:20:23: error: no matching function for call to 'std::vector<int>::pop_back(int&)' 20 | stiva.pop_back(nod); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:3: /usr/include/c++/10/bits/stl_vector.h:1225:7: note: candidate: 'void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]' 1225 | pop_back() _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1225:7: note: candidate expects 0 arguments, 1 provided Non zero exit status: 1

Ceva nu functioneaza?