Help me in solving LBC19 problem

My issue

My code

// Update the code below to solve this problem

#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main() 
{
  int t;
  cin>>t; 
  while(t--)
  {
  int N,X;
  cin>>N>>X;
  X=pow(X,2);
  for(int i=0;i<N;i++)
  X=X/2;
  cout<<X<<endl;
   }
return 0;
}

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone

Replace pow(X,2) with pow(2,X)

1 Like

tqs vro !!

1 Like