/in/foo.cc: In function 'int main()':
/in/foo.cc:45:13: error: conflicting declaration 'char s [1000]'
char s[1000];
^
/in/foo.cc:44:6: note: previous declaration as 'Str s'
Str s;
^
/in/foo.cc:47:9: error: expected primary-expression before ']' token
cin>>s[];
^
/in/foo.cc:48:9: error: expected primary-expression before ']' token
cin>>t[];
^
/in/foo.cc:50:19: error: 'strlen' was not declared in this scope
int tlen=strlen(t);
^
/in/foo.cc:54:22: error: cannot convert 'Str' to 'char*' for argument '1' to 'int Index(char*, int, char*)'
k=Index(s,k+tlen, t);
^