Why is this an issue?

\% escape code is not standard.

Even some tools allow it, use %% instead to keep your code portable.

How to fix it

Code examples

Noncompliant code example

string s = "Hello World\%";

Compliant solution

string s = "Hello World%%";