Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  list<ll> l{1,2,3};
  ll a,b; cin >> a; cin >> b;
  l.erase(a); l.erase(b);
  cout << *l.begin() << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: no matching function for call to 'std::__cxx11::list<long long int>::erase(long long int&)'
   10 |   l.erase(a); l.erase(b);
      |   ~~~~~~~^~~
In file included from /usr/include/c++/14/list:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:150,
                 from a.cc:1:
/usr/include/c++/14/bits/list.tcc:150:5: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::__cxx11::list<long long int>::iterator; const_iterator = std::__cxx11::list<long long int>::const_iterator]'
  150 |     list<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/list.tcc:152:26: note:   no known conversion for argument 1 from 'long long int' to 'std::__cxx11::list<long long int>::const_iterator'
  152 |     erase(const_iterator __position) noexcept
      |           ~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/list:65:
/usr/include/c++/14/bits/stl_list.h:1559:7: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::__cxx11::list<long long int>::iterator; const_iterator = std::__cxx11::list<long long int>::const_iterator]'
 1559 |       erase(const_iterator __first, const_iterator __last) noexcept
      |       ^~~~~
/usr/include/c++/14/bits/stl_list.h:1559:7: note:   candidate expects 2 arguments, 1 provided
a.cc:10:22: error: no matching function for call to 'std::__cxx11::list<long long int>::erase(long long int&)'
   10 |   l.erase(a); l.erase(b);
      |               ~~~~~~~^~~
/usr/include/c++/14/bits/list.tcc:150:5: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::__cxx11::list<long long int>::iterator; const_iterator = std::__cxx11::list<long long int>::const_iterator]'
  150 |     list<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/list.tcc:152:26: note:   no known conversion for argument 1 from 'long long int' to 'std::__cxx11::list<long long int>::const_iterator'
  152 |     erase(const_iterator __position) noexcept
      |           ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_list.h:1559:7: note: candidate: 'std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; iterator = std::__cxx11::list<long long int>::iterator; const_iterator = std::__cxx11::list<long long int>::const_iterator]'
 1559 |       erase(const_iterator __first, const_iterator __last) noexcept
      |       ^~~~~
/usr/include/c++/14/bits/stl_list.h:1559:7: note:   candidate expects 2 arguments, 1 provided