whats wrong in this code? even it is running on turbo c++ and dev c++

#include
using namespace std;
int main()
{

int T,i,j,N,a[26];
char str[50000];
cin>>N;
int store[N],s=0;
for(T=0;T<N;T++)
{
int sum=0,m=0,count=0;
for(i=0;i<26;i++)
{
cin>>a[i];
}

cin>>str;

while(str[m]!='\0'){
	count++;
	m++;
}  
for(i=1;i<=26;i++)
{
for(j=0;j<count;j++)
{
int val = int(str[j]);
if((val-96)==i)
break;
}
if(j==count)
sum = sum+i;
}
cout<<sum<<"\n";
}
return 0;
}

Its hard to read the code can upload it on github or similar and share the link

Can you provide the question link

1 Like

code of the question MATPAN