prog.c: In function ‘main’:
prog.c:10:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[(sizetype)(size)]’ [-Wformat=]
scanf("%s",&str);
^
prog.c:12:23: error: lvalue required as left operand of assignment
if(str[i]=='T' && c=0){
^
prog.c:23:4: error: expected ‘}’ before ‘else’
else if(str[i]=='T'){
^~~~
prog.c:7:21: warning: unused variable ‘count’ [-Wunused-variable]
int size,i,flag=0,count=0,j,c=0;
^~~~~
prog.c:42:1: error: expected declaration or statement at end of input
}
^