Problem queuecutting
User noobatcp
Submission Time 2024-06-21 15:41:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

queuecutting.cpp: In function ‘int32_t main()’:
queuecutting.cpp:38:22: error: ‘class std::deque<long long int>’ has no member named ‘push’
38 | if (a==1)cin>>b, q.push(b);
| ^~~~
queuecutting.cpp:45:14: error: no match for ‘operator=’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
45 | a=q.front();
| ^
In file included from /usr/include/c++/9/iostream:40,
from queuecutting.cpp:4:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]’
625 | operator=(basic_istream&& __rhs)
|