prog.c: In function ‘main’:
prog.c:7:13: error: ‘t’ undeclared (first use in this function)
for(j=0;j<t;j++)
^
prog.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
prog.c:14:23: error: ‘length’ undeclared (first use in this function)
for(i = 0; i< length - 1; ++i)
^~~~~~
prog.c:27:33: error: ‘str’ undeclared (first use in this function)
for(i = location;s[i]== str[num1];++i)
^~~