KISSES AND HUGS CODE CHEF QUESTION include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t–)
{
long long int a;long long int x;
cin >> a;
if(a==1)
{
cout<<“2”<<endl;
}
else if(a==2)
{
cout<<“4”<<endl;
}
else if (a % 2 != 0)
{
x=(pow(2, a / 2 + 2) + pow(2, a / 2 + 1) - 6);
cout<<(((int)x)%1000000007)<<endl;
}
else
{
x=(2 * pow(2, a / 2 + 1) - 6);
cout<<(((int)x)%1000000007)<<endl;
}
}
return 0;
}kindly guide me where i am wrong