Open
Description
🐛 Bug Report
Even though I have saved the file multiple times, and using the ->
to access the property of a pointer(using C++), the extension converts it to .
and passes it to the judge. See the error statement
To Reproduce
I wrote the code:
for(int i = 0; i<n; i++){
t1 = t1->next;
}
and got the following error:
Line 27: Char 14: error: member reference type 'ListNode *' is a pointer; did you mean to use '->'?
Line 27: Char 14: error: member reference type 'ListNode *' is a pointer; did you mean to use '->'?
t1=t1.next;
~~^
->
Expected behavior
The code should have been submitted properly, instead I am getting an unexpected compile error.
Extension Output
- Sending code to judge
(node:3840) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Usenode --trace-warnings ...
to show where the warning was created) - Waiting for judge result
- Waiting for judge result
- Waiting for judge result
- Waiting for judge result
✘ Compile Error
✘ Error: Line 27: Char 14: error: member reference type 'ListNode *' is a pointer; did you mean to use '->'?
✘ Error: Line 27: Char 14: error: member reference type 'ListNode *' is a pointer; did you mean to use '->'?
t1=t1.next;
~~^
->
✘ Your Input: [1,2,3,4,5]
2
✘ Expected Answer:
✘ Stdout:
Your Environment
- os: macOS Big Sur 11.3
- extension settings: default(logged in via LinkedIn)
- nodejs version: 14.16.1
- vscode version: 1.55.2 (Universal)
- extension version: 0.17.0
Metadata
Metadata
Assignees
Labels
No labels