Borderou de evaluare (job #1921649)

Utilizator libaliv26Petre Livia libaliv26 Data 10 martie 2017 13:41:10
Problema Tsunami Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_queue.h: In instantiation of ‘class std::queue<int, int>’: user.cpp:17:17: required from here /usr/include/c++/4.8/bits/stl_queue.h:96:46: error: ‘int’ is not a class, struct, or union type typedef typename _Sequence::value_type _Sequence_value_type; ^ /usr/include/c++/4.8/bits/stl_queue.h:111:61: error: ‘int’ is not a class, struct, or union type typedef typename _Sequence::value_type value_type; ^ /usr/include/c++/4.8/bits/stl_queue.h:112:61: error: ‘int’ is not a class, struct, or union type typedef typename _Sequence::reference reference; ^ /usr/include/c++/4.8/bits/stl_queue.h:113:61: error: ‘int’ is not a class, struct, or union type typedef typename _Sequence::const_reference const_reference; ^ /usr/include/c++/4.8/bits/stl_queue.h:114:61: error: ‘int’ is not a class, struct, or union type typedef typename _Sequence::size_type size_type; ^ user.cpp: In function ‘void lee()’: user.cpp:37:16: error: ‘class std::queue<int, int>’ has no member named ‘push’ {q.push(make_pair(i,j)); ^ user.cpp:39:22: error: ‘class std::queue<int, int>’ has no member named ‘front’ {i=q.front().first; ^ user.cpp:40:22: error: ‘class std::queue<int, int>’ has no member named ‘front’ j=q.front().second; ^ user.cpp:48:28: error: ‘class std::queue<int, int>’ has no member named ‘push’ q.push(make_pair(i2,j2);} ^ user.cpp:48:49: error: expected ‘)’ before ‘;’ token q.push(make_pair(i2,j2);} ^ user.cpp:33:10: warning: unused variable ‘i’ [-Wunused-variable] {int i,j, i2,j2; ^ user.cpp:33:12: warning: unused variable ‘j’ [-Wunused-variable] {int i,j, i2,j2; ^ In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_queue.h: In instantiation of ‘bool std::queue<_Tp, _Sequence>::empty() const [with _Tp = int; _Sequence = int]’: user.cpp:38:30: required from here /usr/include/c++/4.8/bits/stl_queue.h:151:24: error: request for member ‘empty’ in ‘((const std::queue<int, int>*)this)->std::queue<int, int>::c’, which is of non-class type ‘const int’ { return c.empty(); } ^ /usr/include/c++/4.8/bits/stl_queue.h: In instantiation of ‘void std::queue<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = int]’: user.cpp:41:24: required from here

Ceva nu functioneaza?