answer.code: In function ‘int main()’:
answer.code:9:5: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
9 | cnt=0;
| ^~~
| int
answer.code:6:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d",&T);
| ~~~~~^~~~~~~~~
answer.code:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s",s);
| ~~~~~^~~~~~~~