title: What is wrong with this Linker error in Microsoft Visual?
body: <p>This is my first question on Stack Overflow. This is really driving me nuts, as a 1 month C++ novice learner. It's maybe because i'm stupid. Anyway, i get this linker error : </p>
  
  <p>LINK : fatal error LNK1168: cannot open D:\coding\visualstudio\CW_stringsorting\Debug\CW_stringsorting.exe for writing</p>
  
  <p>I am trying too solve an 8 kyu problem from Code Wars and for this to happen, i thought i start with something easier by doing step-by-step algorithms that i think will help me solve the problem.Now, i am just trying to concatenate some strings into 1 single string. Since i didn't study yet very much vectors or strings i supose something basic is wrong with this code, but i can't see what. Please help.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include&lt;string&gt;
  #include&lt;cstring&gt;
  #include&lt;vector&gt;
  
  using namespace std;
  
  
  string twoSort(vector&lt;string&gt; s) {
  
  string a;
  int size = s.size();
  for (int i = 0; i &lt; size; i++) {
  
      a += s[i];
  }
  
  
  return a;
  }
  
  
  int main()
  {
  string twoSort(vector&lt;string&gt; s);
  
  
  cout&lt;&lt;twoSort({ "bitcoin", "take", "over", "the", "world", "maybe", "who", "knows", "perhaps" });
  
  return 0;
  }
  </code></pre>