title: Error] cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string&gt;
  main()
  {
  int br_el[6],i;
  std::string qr_naziv[6];
  
      qr_naziv[0]="Bath tub";
  
      qr_naziv[1]="Sink";
  
      qr_naziv[2]="Washing machine";
  
      qr_naziv[3]="Toilet";
  
      qr_naziv[4]="Kitchen sink";
  
      qr_naziv[5]="Dish washer";
  
  
  for(i=0;i&lt;6;i++)
      {
  
          printf("Input the number for %s =",qr_naziv[i]);\\here lies the problem
  
  scanf("%d",&amp;br_el[i]);
  }
  </code></pre>
  
  <p>This program is much longer, so I shortened it..
  The thing is, I will enter numbers for array <code>br_el[6]</code>, and I want it to show me for what object I am entering the number! 
  So when I try to compile it gives me the error:"[Error] cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string}' through '...'"
  I tried to declare <code>string qr_naziv[6];</code> but the string didn't even bold so it didn't work, so I googled and found out another way (<code>std::string qr_naziv[6];</code>).</p>