Borderou de evaluare (job #2244910)

Utilizator Andrei2000Andrei Mihailescu Andrei2000 Data 24 septembrie 2018 09:43:01
Problema Cobai Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:39:22: error: ‘__gnu_cxx::__alloc_traits<std::allocator<trio> >::value_type {aka struct trio}’ has no member named ‘k’ if(Q.front().k>k){ ^ user.cpp:44:26: error: ‘__gnu_cxx::__alloc_traits<std::allocator<trio> >::value_type {aka struct trio}’ has no member named ‘i’ int aa=Q.front().i, bb=Q.front().j; ^ user.cpp:47:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] aa+=dy[d]; ^ user.cpp:48:13: error: ‘bb’ was not declared in this scope bb+=dx[d]; ^~ user.cpp:48:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] bb+=dx[d]; ^ user.cpp:49:40: error: ‘b’ was not declared in this scope if(aa<1 || aa>m || bb<1 || b>n)break; ^ user.cpp:50:19: error: ‘a’ was not declared in this scope if(cc[a][b]=='+')break; ^ user.cpp:50:22: error: ‘b’ was not declared in this scope if(cc[a][b]=='+')break; ^ user.cpp:51:31: error: no matching function for call to ‘std::queue<trio>::push(<brace-enclosed initializer list>)’ Q.push({aa,bb,k+1}); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = trio; _Sequence = std::deque<trio, std::allocator<trio> >; std::queue<_Tp, _Sequence>::value_type = trio] push(const value_type& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:242:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const trio&}’ /usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = trio; _Sequence = std::deque<trio, std::allocator<trio> >; std::queue<_Tp, _Sequence>::value_type = trio] push(value_type&& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:247:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::queue<trio>::value_type&& {aka trio&&}’

Ceva nu functioneaza?