Borderou de evaluare (job #3292278)
Utilizator | Data | 7 aprilie 2025 19:43:44 | |
---|---|---|---|
Problema | Drumuri | 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)':
main.cpp:21:41: error: 'nod2' was not declared in this scope; did you mean 'nod'?
21 | if(last!=0&&(nod1==nod||nod2==nod||nod1==x||nod2==x)){
| ^~~~
| nod
main.cpp:23:38: error: no matching function for call to 'std::vector<elem>::push_back(<brace-enclosed initializer list>)'
23 | sol.push_back({x,nod,nod2});
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from main.cpp:2:
/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 = elem; _Alloc = std::allocator<elem>; value_type = elem]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<elem>::value_type&' {aka 'const elem&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/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 = elem; _Alloc = std::allocator<elem>; value_type = elem]'
1293 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<elem>::value_type&&' {aka 'elem&&'}
1293 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:27:38: error: no matching function for call to 'std::vector<elem>::push_back(<brace-enclosed initializer list>)'
27 | sol.push_back({nod,x,nod2});
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
/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 = elem; _Alloc = std::allocator<elem>; value_type = elem]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<elem>::value_type&' {aka 'const elem&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/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 = elem; _Alloc = std::allocator<elem>; value_type = elem]'
1293 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<elem>::value_type&&' {aka 'elem&&'}
1293 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !