Language: C++

#include<bits/stdc++.h>
#define R(n)for(L i=0;i<n;i++)
#define M make_pair
typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}

Compiler output:
a.cc:4:9: error: '__int64' does not name a type; did you mean '__int64_t'?
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |         ^~~~~~~
      |         __int64_t
a.cc: In function 'int main()':
a.cc:4:50: error: 'L' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                  ^
a.cc:4:71: error: 'n' was not declared in this scope; did you mean 'yn'?
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                       ^
      |                                                                       yn
a.cc:4:74: error: 'k' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                          ^
a.cc:4:77: error: 's' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                             ^
a.cc:4:80: error: 't' was not declared in this scope; did you mean 'tm'?
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                ^
      |                                                                                tm
a.cc:2:19: error: expected ';' before 'i'
    2 | #define R(n)for(L i=0;i<n;i++)
      |                   ^
a.cc:4:82: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                  ^
a.cc:2:23: error: 'i' was not declared in this scope
    2 | #define R(n)for(L i=0;i<n;i++)
      |                       ^
a.cc:4:82: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                  ^
a.cc:4:91: error: 'a' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                           ^
a.cc:4:111: error: template argument 1 is invalid
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                               ^
a.cc:4:111: error: template argument 3 is invalid
a.cc:4:111: error: template argument 4 is invalid
a.cc:2:19: error: expected ';' before 'i'
    2 | #define R(n)for(L i=0;i<n;i++)
      |                   ^
a.cc:4:119: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                       ^
a.cc:2:23: error: 'i' was not declared in this scope
    2 | #define R(n)for(L i=0;i<n;i++)
      |                       ^
a.cc:4:119: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                       ^
a.cc:4:129: error: expected ';' before 'j'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                 ^~
      |                                                                                                                                 ;
a.cc:4:136: error: 'j' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                        ^
a.cc:4:181: error: 'a' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                                                                     ^
a.cc:4:225: error: 'a' was not declared in this scope
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                                                                                                                 ^
a.cc:2:19: error: expected ';' before 'i'
    2 | #define R(n)for(L i=0;i<n;i++)
      |                   ^
a.cc:4:244: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                                                                                                                                    ^
a.cc:2:23: error: 'i' was not declared in this scope
    2 | #define R(n)for(L i=0;i<n;i++)
      |                       ^
a.cc:4:244: note: in expansion of macro 'R'
    4 | typedef __int64 L;using namespace std;int main(){L n,k,s,t,a[50];cin>>n>>k>>s>>t;R(n)cin>>a[i];map<pair<L,L>,L> p[50];R(n){for(L j=k-1;j;j--)for(auto&l:p[j-1])p[j][M(l.first.first&a[i],l.first.second|a[i])]+=l.second;p[0][M(a[i],a[i])]=1;}n=0;R(k)n+=p[i][M(s,t)];cout<<n;}
      |                                                                                                                                                                                                                                                    ^