Language: C++

#define SET

// #pragma GCC optimize("O3")
// #pragma comment(linker, "/stack:200000000")
// #pragma GCC optimize("unroll-loops")

#include <bits/stdc++.h>
#include <string>
#define pb push_back
#define mp make_pair
#define f(i, a, b) for (long long i = a; i < b; i++)
#define revf(i, b, a) for (int i = b; i >= a; i--)
#define srt(v) sort(v.begin(), v.end())
#define rev_srt(v) sort(v.rbegin(), v.rend())
#define mem(a, b) memset(a, b, sizeof(a))
using namespace std;

#ifdef SET
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
using namespace __gnu_pbds;
using namespace __gnu_cxx;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_multi_set;

#endif

#define nl '\n'
#define sp " "
#define precision(x) cout << fixed << setprecision(x);
#define fio                  \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \
    cout.tie(0);
#define all(x) x.begin(), x.end()
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<pii> vpii;
typedef vector<vpii> vvpii;
#define MX 100005
#define MOD 1000000007
/*ll fac[MX], modInv[MX];

ll power(ll x, ll y, ll p)
{
    ll res = 1;

    x = x % p;

    while (y > 0)
    {

        if (y & 1)
            res = (res * x) % p;

        y = y >> 1;
        x = (x * x) % p;
    }
    return res;
}

ll modInverse(ll n, ll p)
{
    return power(n, p - 2, p);
}

ll nCrModPFermat(ll n, ll r, ll p)
{

    if (r == 0)
        return 1;
    if (n < r)
        return 1;

    return ((((fac[n] * modInv[r]) % p) *
             modInv[n - r]) %
            p);
}

void pre()
{
    fac[0] = 1;
    for (ll i = 1; i < MX ; i++)
        fac[i] = (fac[i - 1] * i) % MOD;
    f(i, 0, MX )
        modInv[i] = modInverse(fac[i], MOD);
}*/

template <class T>
inline bool remax(T &a, T b) { return a < b ? a = b, 1 : 0; }
template <class T>
inline bool remin(T &a, T b) { return a > b ? a = b, 1 : 0; }

ll md = 1000000007;
//ll fact[1000005], mi[1000005];
//; // expt[1000005];
ll my_gcd(ll n, ll m)
{
    if (n % m == 0)
        return m;
    if (n < m)
        swap(n, m);
    while (m > 0)
    {
        n = n % m;
        swap(n, m);
    }
    return n;
}

ll pw(ll a, ll b)
{
    ll c = 1, m = a % md;
    while (b)
    {
        if (b & 1)
            c = (c * m) % md;
        m = (m * m) % md;
        b /= 2;
    }
    return c;
}

ll modinv(ll n)
{
    return pw(n, md - 2);
}

inline ll add(ll a, ll b) { return (md + a % md + b % md) % md; }
inline ll subt(ll a, ll b) { return (a % md - b % md + md) % md; }
inline ll mult(ll a, ll b) { return (1ll * (a % md) * (b % md)) % md; }

/*ll ncr(int n, int r)
{
    if (!n)
        return 1;
    return mult(fact[n], mult(mi[r], mi[n - r]));
}
void pre()
{
    fact[0] = 1;
    f(i, 1, 2003) fact[i] = mult(i, fact[i - 1]);
    f(i, 0, 2003) mi[i] = modinv(fact[i]);
}
*/
int myceil(int a, int b)
{
    if (a % b)
        return (a / b) + 1;
    else
        return a / b;
};
/*
vi adj[200005];
int special[200005];
int dis1[200005],disn[200005];

void bfs(int start)
{
    int visited[200005];
    int dis[200005];
    f(i,0,200005) visited[i]=0,dis[i]=0;
    queue<int> bfq;
    bfq.push(start);
    visited[start]=1;
    while(!bfq.empty())
    {
        int cur=bfq.front();
        bfq.pop();
        for(auto i: adj[cur])
        {
            if(!visited[i])
            {
                dis[i]= dis[cur]+1;
                bfq.push(i);
                visited[i]=1;
            }
        }
    }
    if(start==1) f(i,0,200005) dis1[i]=dis[i];
    else    f(i,0,200005) disn[i]=dis[i];

}*/

ll a[1000006];
ll as[1000006];
ll b[1000006];
ll bs[1000006];

void solvetestcase(int tcn)
{
    int n;
    if(n%2) cin>>n/2+1;
    else cin>>n/2;
}

int main()
{
    fio;
    int t = 1;
    //cin >> t;
    f(i, 1, t + 1)
    {
        solvetestcase(i);
    }
};

Compiler output:
a.cc: In function 'void solvetestcase(int)':
a.cc:201:16: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
  201 |     if(n%2) cin>>n/2+1;
      |             ~~~^~~~~~~
      |             |       |
      |             |       int
      |             std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:7:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  170 |       operator>>(bool& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:170:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  174 |       operator>>(short& __n);
      |       ^~~~~~~~
/usr/include/c++/14/istream:174:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  177 |       operator>>(unsigned short& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:177:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  181 |       operator>>(int& __n);
      |       ^~~~~~~~
/usr/include/c++/14/istream:181:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  184 |       operator>>(unsigned int& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:184:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  188 |       operator>>(long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:188:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  192 |       operator>>(unsigned long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:192:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  199 |       operator>>(long long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:199:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  203 |       operator>>(unsigned long long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:203:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  219 |       operator>>(float& __f)
      |       ^~~~~~~~
/usr/include/c++/14/istream:219:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  223 |       operator>>(double& __f)
      |       ^~~~~~~~
/usr/include/c++/14/istream:223:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  227 |       operator>>(long double& __f)
      |       ^~~~~~~~
/usr/include/c++/14/istream:227:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'int'
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  328 |       operator>>(void*& __p)
      |       ^~~~~~~~
/usr/include/c++/14/istream:328:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: invalid conversion from 'int' to 'void*' [-fpermissive]
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
      |                     |
      |                     int
a.cc:201:21: error: cannot bind rvalue '(void*)((long int)((n / 2) + 1))' to 'void*&'
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:122:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: invalid conversion from 'int' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive]
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
      |                     |
      |                     int
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' (near match)
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:126:7: note:   conversion of argument 1 would be ill-formed:
a.cc:201:21: error: invalid conversion from 'int' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive]
  201 |     if(n%2) cin>>n/2+1;
      |                  ~~~^~
      |                     |
      |                     int
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<