/ WHOJ /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1498 同构字符串(文件IO)
题目数据
下载
语言
C++
递交时间
2022-08-12 09:47:17
评测时间
2022-08-12 09:47:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes