Skip to content

Unable to input string in the command palette as test case with C++ #608

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

Closed
jtchen2k opened this issue Jul 29, 2020 · 2 comments
Closed

Comments

@jtchen2k
Copy link

🐛 Bug Report

Unable to input string in the command palette as test case. The quotes won't be handled properly.

For instance for the problem 5, no matter I input "abba" or abba as the input string, I get the following errors:

terminate called after throwing an instance of 'std::logic_error'
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid

While in the online website, the string can be handled properly with quotes.

To Reproduce

Input string-type test case in the command palette.

Expected behavior

The input LeetCode get should have quotes around my input so that it can be seen as a valid string.

Extension Output

- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
  ✘ Runtime Error
  ✘ Error: terminate called after throwing an instance of 'std::logic_error'
  ✘ Error: terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
  ✘ Your Input: abba
  ✘ Stdout: 

Your Environment

  • os: macOS 10.14.6
  • extension settings: (All default)
  • nodejs version: 14.5.0
  • vscode version: 1.47.3
  • extension version: 0.17.0
@yihong0618
Copy link
Contributor

yihong0618 commented Jul 31, 2020

@BillChen2K
In this case seems you need to add another quotes,
like ""abba""

@jtchen2k
Copy link
Author

@BillChen2K
In this case seems you need to add another quotes,
like ""abba""

Thanks, it worked

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