title: How do I fix "expected unqualfied-id before string constant" even when I do not #define anything or miss a semicolon?
body: <h1>The Problem</h1>
  <p>I keep getting the error message &quot;expected unqualified-id before string constant&quot;, however, I do not miss any semicolon nor do I #define anything incorrectly. In fact, I do not even use #define.</p>
  <p>The error message will only stop popping up when I reduce the number of strings that are entered in the array.</p>
  <h2>My Code</h2>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main(){
      int score, res=0;
      string names[]=&quot;MARY&quot;, ... ,&quot;ALONSO&quot;;
      return 0;
  }
  </code></pre>
  <p><em><strong>All the strings I enter can be found <a href="https://projecteuler.net/project/resources/p022_names.txt" rel="nofollow noreferrer">here</a></strong></em></p>