warning in range-based for loop in C++. How to resolve it in vscode?
Enable the C++17 standard by adding the following line to your tasks.json file:
"args": ["-std=c++17"]
This will allow you to use range-based for loops with non-const loop variables.