Language: C++

#include <bits/stdc++.h>
using namespace std;
#ifdef _DEBUG
#define _GLIBCXX_DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif

#define int long long
// typedef __int128_t Int;
#define DBG 1
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define loop(n) rep(loop, (0), (n))
#define all(c) begin(c), end(c)
const int INF =
    sizeof(int) == sizeof(long long) ? 0x3f3f3f3f3f3f3f3fLL : 0x3f3f3f3f;
const int MOD = (int)(1e9) + 7;
const double PI = acos(-1);
const double EPS = 1e-9;
template <class T> bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T> bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}

int S(int x) {
  int ret = 0;
  while (x) {
    ret += x % 10;
    x /= 10;
  }
  return ret;
}
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(12);

  int K;
  cin >> K;
  rep(i, 1, min(9, K) + 1) { cout << i << endl; }
  if (K <= 9)
    return 0;

  K -= 9;
  int a = 19;
  loop(K) {
    cout << a << endl;
    a += 10;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:16: error: no matching function for call to 'min(int, long long int&)'
   52 |   rep(i, 1, min(9, K) + 1) { cout << i << endl; }
      |             ~~~^~~~~~
a.cc:13:45: note: in definition of macro 'rep'
   13 | #define rep(i, a, b) for (int i = (a); i < (b); i++)
      |                                             ^
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:52:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   52 |   rep(i, 1, min(9, K) + 1) { cout << i << endl; }
      |             ~~~^~~~~~
a.cc:13:45: note: in definition of macro 'rep'
   13 | #define rep(i, a, b) for (int i = (a); i < (b); i++)
      |                                             ^
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:52:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   52 |   rep(i, 1, min(9, K) + 1) { cout << i << endl; }
      |             ~~~^~~~~~
a.cc:13:45: note: in definition of macro 'rep'
   13 | #define rep(i, a, b) for (int i = (a); i < (b); i++)
      |                                             ^