A
A
a1trope2022-02-27 10:50:06
Visual Studio Code
a1trope, 2022-02-27 10:50:06

How to remove red "and" and "or" highlighting in VS Code?

Tried restarting Intellisense on the active file, reinstalling the C/C++ extension and VS Code itself, but didn't help. The red highlight disappears when I disable the extension, but no errors are highlighted after that. A quick fix suggests simply turning off error highlighting. I am attaching the list of installed extensions and code below.

621b2c30a1b91117561542.jpeg

int f1(int* a, int n, int b, int d) {
    int prod = 1;
    for (int i = 0; i < n; i++) {
        if (b <= a[i] and a[i] <= d) prod *= 1;
    }

    return prod;
}

int main() {

}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question