Language: C++

#include <iostream>
#include <string>
#include <deque>
#include <algorithm>

int main() {

    int commandCount;
    std::cin >> commandCount;

    std::deque deque;
    while (commandCount--) {
        std::string command;
        std::cin >> command;
        int value;

        if (command == "insert") {
            std::cin >> value;
            deque.emplace_front(value);
        }
        if (command == "delete") {
            std::cin >> value;
            const auto deleteItr = std::find(deque.begin(), deque.end(), value);
            deque.erase(deleteItr);
        }
        if (command == "deleteFirst") {
            deque.pop_front();
        }
        if (command == "deleteLast") {
            deque.pop_back();
        }
    }

    deque.print();

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: class template argument deduction failed:
   11 |     std::deque deque;
      |                ^~~~~
a.cc:11:16: error: no matching function for call to 'deque()'
In file included from /usr/include/c++/14/deque:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_deque.h:1003:9: note: candidate: 'template<class _Tp, class _Alloc, class _InputIterator, class> deque(_InputIterator, _InputIterator, const _Alloc&)-> std::deque<_Tp, _Alloc>'
 1003 |         deque(_InputIterator __first, _InputIterator __last,
      |         ^~~~~
/usr/include/c++/14/bits/stl_deque.h:1003:9: note:   candidate expects 2 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:976:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::initializer_list<_Tp>, const _Alloc&)-> std::deque<_Tp, _Alloc>'
  976 |       deque(initializer_list<value_type> __l,
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:976:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:952:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::deque<_Tp, _Alloc>&&, const _Alloc&, std::false_type)-> std::deque<_Tp, _Alloc>'
  952 |       deque(deque&& __x, const allocator_type& __a, false_type)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:952:7: note:   candidate expects 3 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:948:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::deque<_Tp, _Alloc>&&, const _Alloc&, std::true_type)-> std::deque<_Tp, _Alloc>'
  948 |       deque(deque&& __x, const allocator_type& __a, true_type)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:948:7: note:   candidate expects 3 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:943:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::deque<_Tp, _Alloc>&&, std::__type_identity_t<_Alloc>&)-> std::deque<_Tp, _Alloc>'
  943 |       deque(deque&& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:943:7: note:   candidate expects 2 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:936:7: note: candidate: 'template<class _Tp, class _Alloc> deque(const std::deque<_Tp, _Alloc>&, std::__type_identity_t<_Alloc>&)-> std::deque<_Tp, _Alloc>'
  936 |       deque(const deque& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:936:7: note:   candidate expects 2 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:933:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::deque<_Tp, _Alloc>&&)-> std::deque<_Tp, _Alloc>'
  933 |       deque(deque&&) = default;
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:933:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:917:7: note: candidate: 'template<class _Tp, class _Alloc> deque(const std::deque<_Tp, _Alloc>&)-> std::deque<_Tp, _Alloc>'
  917 |       deque(const deque& __x)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:917:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:890:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::size_t, const _Tp&, const _Alloc&)-> std::deque<_Tp, _Alloc>'
  890 |       deque(size_type __n, const value_type& __value,
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:890:7: note:   candidate expects 2 arguments, 0 provided
/usr/include/c++/14/bits/stl_deque.h:878:7: note: candidate: 'template<class _Tp, class _Alloc> deque(std::size_t, const _Alloc&)-> std::deque<_Tp, _Alloc>'
  878 |       deque(size_type __n, const allocator_type& __a = allocator_type())
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:878:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:865:7: note: candidate: 'template<class _Tp, class _Alloc> deque(const _Alloc&)-> std::deque<_Tp, _Alloc>'
  865 |       deque(const allocator_type& __a)
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:865:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:855:7: note: candidate: 'template<class _Tp, class _Alloc> deque()-> std::deque<_Tp, _Alloc>'
  855 |       deque() = default;
      |       ^~~~~
/usr/include/c++/14/bits/stl_deque.h:855:7: note:   template argument deduction/substitution failed:
a.cc:11:16: note:   couldn't deduce template parameter '_Tp'
   11 |     std::deque deque;
      |                ^~~~~
/usr/include/c++/14/bits/stl_deque.h:788:11: note: candidate: 'template<class _Tp, class _Alloc> deque(std::deque<_Tp, _Alloc>)-> std::deque<_Tp, _Alloc>'
  788 |     class deque : protected _Deque_base<_Tp, _Alloc>
      |           ^~~~~
/usr/include/c++/14/bits/stl_deque.h:788:11: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_deque.h:2277:5: note: candidate: 'template<class _InputIterator, class _ValT, class _Allocator, class, class> std::deque(_InputIterator, _InputIterator, _Allocator)-> deque<_ValT, _Allocator>'
 2277 |     deque(_InputIterator, _InputIterator, _Allocator = _Allocator())
      |     ^~~~~
/usr/include/c++/14/bits/stl_deque.h:2277:5: note:   candidate expects 2 arguments, 0 provided