bridz.cpp: In function 'int main()':
bridz.cpp:9:38: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i = 0; i < 5; ++i) c[A[i]] = i;
^
bridz.cpp:13:52: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i = 0; i < 13; ++i) sum += c[inp[i]];
^
bridz.cpp:10:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int T; scanf("%d", &T);
~~~~~^~~~~~~~~~
bridz.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", inp);
~~~~~^~~~~~~~~~~