Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在测试样例包含方法调用的C++题目中报错:Input parameters is not match the problem! #19

Open
lgx98 opened this issue Aug 19, 2021 · 1 comment

Comments

@lgx98
Copy link

lgx98 commented Aug 19, 2021

在146 155 352 355 380 381 382 460 528 641 705 706 707 710 715 981等题中(不完全统计),使用C++语言,点击Debug后出现报错:Input parameters is not match the problem!
报错可以追溯到这一行:

if (params.length !== paramsType.length) {

原因是problemType.ts中,对方法调用这类测试样例输入在paramTypes中没有写出对应的类型,而从testCase中利用\n分割出的params中包含了方法调用的测试输入,导致cppExecutor.ts中params.length==paramsType.length+1。

另外,报错信息存在英文语法错误,可以改为:

The input parameters do not match the problem!

@wangtao0101
Copy link
Owner

@lgx98 感谢回复,哈哈,很多题目不能用统一的方式debug,必须单独写,本人偷懒没有实现。😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants