Borderou de evaluare (job #3208111)
Utilizator | Data | 27 februarie 2024 19:36:10 | |
---|---|---|---|
Problema | Ubuntzei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Dijkstra2(int)':
main.cpp:57:11: error: no matching function for call to 'std::queue<std::pair<int, std::bitset<17> > >::push(<brace-enclosed initializer list>)'
57 | q.push({start, a});
| ~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/queue:64,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/stl_queue.h:285:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, std::bitset<17> >; _Sequence = std::deque<std::pair<int, std::bitset<17> >, std::allocator<std::pair<int, std::bitset<17> > > >; value_type = std::pair<int, std::bitset<17> >]'
285 | push(const value_type& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:285:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<std::pair<int, std::bitset<17> > >::value_type&' {aka 'const std::pair<int, std::bitset<17> >&'}
285 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(value_type&&) [with _Tp = std::pair<int, std::bitset<17> >; _Sequence = std::deque<std::pair<int, std::bitset<17> >, std::allocator<std::pair<int, std::bitset<17> > > >; value_type = std::pair<int, std::bitset<17> >]'
290 | push(value_type&& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<int, std::bitset<17> > >::value_type&&' {aka 'std::pair<int, std::bitset<17> >&&'}
290 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:63:38: error: conversion from 'bitset<17>' to non-scalar type 'bitset<18>' requested
63 | bitset<Kmax> viz = q.front().second;
| ~~~~~~~~~~^~~~~~
main.cpp:77:23: error: no matching function for call to 'std::queue<std::pair<int, std::bitset<17> > >::push(<brace-enclosed initializer list>)'
77 | q.push({edge.next, viz2});
| ~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:285:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, std::bitset<17> >; _Sequence = std::deque<std::pair<int, std::bitset<17> >, std::allocator<std::pair<int, std::bitset<17> > > >; value_type = std::pair<int, std::bitset<17> >]'
285 | push(const value_type& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:285:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<std::pair<int, std::bitset<17> > >::value_type&' {aka 'const std::pair<int, std::bitset<17> >&'}
285 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(value_type&&) [with _Tp = std::pair<int, std::bitset<17> >; _Sequence = std::deque<std::pair<int, std::bitset<17> >, std::allocator<std::pair<int, std::bitset<17> > > >; value_type = std::pair<int, std::bitset<17> >]'
290 | push(value_type&& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<int, std::bitset<17> > >::value_type&&' {aka 'std::pair<int, std::bitset<17> >&&'}
290 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:109:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | for(int i = 0; i<loc.size(); i++)
| ~^~~~~~~~~~~
main.cpp:116:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
116 | for(int i = 0; i<loc.size(); i++)
| ~^~~~~~~~~~~
main.cpp:117:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | for(int j = i+1; j<loc.size(); j++)
| ~^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !