foo.cc: In function 'int xry(char*, char*)':
foo.cc:9:2: error: 'l1' was not declared in this scope
l1=strlen(s1);
^~
foo.cc:9:2: note: suggested alternative: 's1'
l1=strlen(s1);
^~
s1
foo.cc:10:2: error: 'l2' was not declared in this scope
l2=strlen(s2);
^~
foo.cc:10:2: note: suggested alternative: 's2'
l2=strlen(s2);
^~
s2
foo.cc:17:64: error: 'l' was not declared in this scope
if((!s2[i-1] || s2[i-1]==32) && s2[i]==s1[0] && (!s2[i+l] || s2[i+l]==32))
^
foo.cc:21:17: error: 'l' was not declared in this scope
if(sum==l){
^
foo.cc:29:24: error: a function-definition is not allowed here before '{' token
void ReadLine(char s[]){
^
foo.cc:39:1: error: a function-definition is not allowed here before '{' token
{
^
foo.cc:8:14: warning: unused variable 'w' [-Wunused-variable]
int t,x,sum,w;
^
foo.cc:48:1: error: expected '}' at end of input
}
^
[Hydro](https://hydro.ac)提供评测服务