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

dev-c-plus-plus

#1

#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*;
}

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<<"

";
}
return 0;
}


#2

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


#3

Can you provide the question link


#4

code of the question MATPAN