Language: C++

#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define mp make_pair
#define fs first
#define fst first
#define sc second
#define snd second
#define sz(X) (int)(X).size()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define fornr(i, n) for (int i = int(n) - 1; i >= 0; i--)
#define forab(i, a, b) for(int i = int(a); i < int(b); i++)
#define all(X) X.begin(), X.end()

typedef long long ll;
typedef pair<int, int> pii;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef double dbl;
typedef long double ld;
typedef vector<int> vi;
typedef vector<pair<ll, ll>> vpll;

mt19937 random(566);
uniform_int_distribution<ll> distr;
ll rnd(ll a, ll b) {return a + distr(random) % (b - a + 1);}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n;
    cout << (n+1)/2 << "\n";
    return 0;
}

Compiler output:
a.cc:26:15: error: 'std::mt19937 random' redeclared as different kind of entity
   26 | mt19937 random(566);
      |               ^
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:521:17: note: previous declaration 'long int random()'
  521 | extern long int random (void) __THROW;
      |                 ^~~~~~
In file included from /usr/include/c++/14/bits/stl_algo.h:65,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/uniform_int_dist.h: In instantiation of 'std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomBitGenerator&, const param_type&) [with _UniformRandomBitGenerator = long int() noexcept; _IntType = long long int; result_type = long long int]':
/usr/include/c++/14/bits/uniform_int_dist.h:204:34:   required from 'std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomBitGenerator&) [with _UniformRandomBitGenerator = long int() noexcept; _IntType = long long int; result_type = long long int]'
  204 |         { return this->operator()(__urng, _M_param); }
      |                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
a.cc:28:37:   required from here
   28 | ll rnd(ll a, ll b) {return a + distr(random) % (b - a + 1);}
      |                                ~~~~~^~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h:291:66: error: 'long int() noexcept' is not a class, struct, or union type
  291 |         typedef typename _UniformRandomBitGenerator::result_type _Gresult_type;
      |                                                                  ^~~~~~~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h:293:68: error: 'long int() noexcept' is not a class, struct, or union type
  293 |         typedef typename common_type<_Gresult_type, __utype>::type __uctype;
      |                                                                    ^~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h:295:71: error: 'min' is not a member of 'long int() noexcept'
  295 |         constexpr __uctype __urngmin = _UniformRandomBitGenerator::min();
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/14/bits/uniform_int_dist.h:296:71: error: 'max' is not a member of 'long int() noexcept'
  296 |         constexpr __uctype __urngmax = _UniformRandomBitGenerator::max();
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~