foo.cc: In function 'int main()':
foo.cc:11:20: error: invalid conversion from 'char*' to 'int' [-fpermissive]
11 | int strlen(a)=strlen(a),strlen(b)=strlen(b);
| ^
| |
| char*
foo.cc:11:22: error: expected ',' or ';' before '=' token
11 | int strlen(a)=strlen(a),strlen(b)=strlen(b);
| ^
foo.cc:12:30: error: 'strlen' cannot be used as a function
12 | for(int i=0; i<strlen(a); i++)
| ~~~~~~^~~
foo.cc:14:30: error: 'strlen' cannot be used as a function
14 | for(int i=0; i<strlen(a); i++)
| ~~~~~~^~~
foo.cc:16:25: error: 'strlen' cannot be used as a function
16 | for(int i=strlen(a); i<strlen(b); i++)
| ~~~~~~^~~
foo.cc:16:38: error: 'strlen' cannot be used as a function
16 | for(int i=strlen(a); i<strlen(b); i++)
| ~~~~~~^~~
foo.cc:28:32: error: 'strlen' cannot be used as a function
28 | ansb[b[i-strlen(a)]-'a'+1]--;
| ~~~~~~^~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务