Borderou de evaluare (job #3030769)

Utilizator tudorp_Pop Tudor tudorp_ Data 17 martie 2023 21:01:22
Problema Castel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Lee()': main.cpp:52:12: error: 'k' was not declared in this scope 52 | q.push(k); | ^ main.cpp:58:24: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} to 'int' in initialization 58 | int v = q.front(); | ~~~~~~~^~ | | | __gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type {aka std::pair<int, int>} main.cpp:68:45: error: expected ']' before ')' token 68 | if(access[cas[iv][jv]==1) | ^ | ] main.cpp:72:31: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(int&)' 72 | q.push(nr); | ~~~~~~^~~~ In file included from /usr/include/c++/12.2.1/queue:64, from main.cpp:6: /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, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]' 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 'int' to 'const std::queue<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'} 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, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]' 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 'int' to 'std::queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'} 290 | push(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:85:23: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(int&)' 85 | q.push(i); | ~~~~~~^~~ /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, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]' 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 'int' to 'const std::queue<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'} 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, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; value_type = std::pair<int, int>]' 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 'int' to 'std::queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'} 290 | push(value_type&& __x) | ~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?