Borderou de evaluare (job #738841)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | La coadă | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 oct. 2023 15:53:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/stack:61,
from main.cpp:4:
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_stack.h: In instantiation of 'class std::stack<std::pair<int, int>*, comparator1>':
main.cpp:42:37: required from here
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_stack.h:140:57: error: no type named 'value_type' in 'struct comparator1'
140 | typedef typename _Sequence::value_type value_type;
| ^~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_stack.h:141:57: error: no type named 'reference' in 'struct comparator1'
141 | typedef typename _Sequence::reference reference;
| ^~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_stack.h:142:57: error: no type named 'const_reference' in 'struct comparator1'
142 | typedef typename _Sequence::const_reference const_reference;
| ^~~~~~~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_stack.h:143:57: error: no type named 'size_type' in 'struct comparator1'
143 | typedef typename _Sequence::size_type size_type;
| ^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:64:19: error: 'class std::stack<std::pair<int, int>*, comparator1>' has no member named 'push'
64 | stiva.push(elem);
| ^~~~
main.cpp:69:33: error: void value not ignored as it ought to be
69 | elem = stiva.pop();
| ~~~~~~~~~^~