Borderou de evaluare (job #2902790)
Utilizator | Data | 16 mai 2022 20:26:11 | |
---|---|---|---|
Problema | Catun | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bfs()':
main.cpp:24:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int i = 0; i < v[nod].size(); i++) {
| ~~^~~~~~~~~~~~~~~
main.cpp:31:41: error: 'var' was not declared in this scope
31 | coada.push_back({vecin, var});
| ^~~
main.cpp:31:45: error: no matching function for call to 'std::deque<int>::push_back(<brace-enclosed initializer list>)'
31 | coada.push_back({vecin, var});
| ^
In file included from /usr/include/c++/10/deque:67,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:68,
from main.cpp:1:
/usr/include/c++/10/bits/stl_deque.h:1493:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]'
1493 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1493:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1493 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_deque.h:1508:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]'
1508 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1508:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<int>::value_type&&' {aka 'int&&'}
1508 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:34:21: error: 'var' was not declared in this scope
34 | if (var < origini[vecin]) {
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !