Language: C++

#include<bits/stdc++.h>
#define vi vector<int>
#define vvi vector<vector<int> >
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define vb vector<bool>
#define vc vector<char>
#define vs vector<string>
using ll = long long;
using ld =long double;
#define int ll
#define INF 1e9
#define EPS 0.0000000001
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define all(in) in.begin(), in.end()
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
#define MAX 9999999
using namespace std;
typedef pair<int, int> pii;
typedef pair<int,pii> piii;
#define mp make_pair
signed main(){
    ????????int n; cin>>n;
    ????????vi v(n);
    ????????rep(i,n)cin>>v[i];
    ????????int m;
    ????????cin>>m;
    ????????int ans=0;
    ????????rep(i,m){
        ????????????????int t;
        ????????????????cin>>t;
        ????????????????int imax=n-1;
        ????????????????int imin=0;
        ????????????????int mid;
        ????????????????while(imax>=imin){
            ????????????????????????mid=(imax+imin)/2;
            ????????????????????????if(v[mid]>t)imax=mid;
            ????????????????????????else if(v[mid]<t)imin=mid;
            ????????????????????????else {
                ????????????????????????????????ans++;
                ????????????????????????????????break;
                ????????????????????????}
            ????????????????}
        ????????}
    ????????cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |     ^
a.cc:25:6: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |      ^
a.cc:25:7: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |       ^
a.cc:25:8: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |        ^
a.cc:25:9: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |         ^
a.cc:25:10: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |          ^
a.cc:25:11: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |           ^
a.cc:25:12: error: expected primary-expression before '?' token
   25 |     ????????int n; cin>>n;
      |            ^
a.cc:25:17: error: expected primary-expression before 'n'
   25 |     ????????int n; cin>>n;
      |                 ^
a.cc:25:17: error: expected ':' before 'n'
a.cc:25:17: error: 'n' was not declared in this scope; did you mean 'yn'?
   25 |     ????????int n; cin>>n;
      |                 ^
      |                 yn
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:25:18: error: expected ':' before ';' token
   25 |     ????????int n; cin>>n;
      |                  ^
      |                  :
a.cc:25:18: error: expected primary-expression before ';' token
a.cc:26:5: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |     ^
a.cc:26:6: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |      ^
a.cc:26:7: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |       ^
a.cc:26:8: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |        ^
a.cc:26:9: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |         ^
a.cc:26:10: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |          ^
a.cc:26:11: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |           ^
a.cc:26:12: error: expected primary-expression before '?' token
   26 |     ????????vi v(n);
      |            ^
a.cc:26:16: error: expected primary-expression before 'v'
   26 |     ????????vi v(n);
      |                ^
a.cc:26:16: error: expected ':' before 'v'
a.cc:26:16: error: 'v' was not declared in this scope; did you mean 'vl'?
   26 |     ????????vi v(n);
      |                ^
      |                vl
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:26:20: error: expected ':' before ';' token
   26 |     ????????vi v(n);
      |                    ^
      |                    :
a.cc:26:20: error: expected primary-expression before ';' token
a.cc:27:5: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |     ^
a.cc:27:6: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |      ^
a.cc:27:7: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |       ^
a.cc:27:8: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |        ^
a.cc:27:9: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |         ^
a.cc:27:10: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |          ^
a.cc:27:11: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |           ^
a.cc:27:12: error: expected primary-expression before '?' token
   27 |     ????????rep(i,n)cin>>v[i];
      |            ^
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:13: error: expected ':' before 'for'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^
      |             :
a.cc:14:18: error: expected primary-expression before 'for'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:27:13: note: in expansion of macro 'rep'
   27 |     ????????rep(i,n)cin>>v[i];
      |             ^~~
a.cc:27:17: error: 'i' was not declared in this scope; did you mean 'vi'?
   27 |     ????????rep(i,n)cin>>v[i];
      |                 ^
a.cc:14:30: note: in definition of macro 'rep'
   14 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
a.cc:28:5: error: expected primary-expression before '?' token
   28 |     ????????int m;
      |     ^
a.cc:28:6: error: expected primary-expression before '?' token
   28 |     ????????int m;
      |      ^
a.cc:28:7: error: expected primary-expression before '?' token
   28 |     ????????int m;
      |       ^
a.cc:28:8: error: expected primary-expression before '?' token
   28 |     ????????int m;
      |        ^
a.cc:28:9: error: expected primary-expression before '?' token
   28 |     ????????i