title: Unknown conversion types in this program I'm meant to compile
body: <p>I don't know how this C program I'm meant to compile works exactly. I'm compiling it on a MacBook so maybe that explains the unusual errors? Anyway the compiled program doesn't seem to be working correctly. When compiled, I get these:</p>
  
  <pre>
  ers.c: In function ‘evolve’:
  ers.c:205: warning: unknown conversion type character 0xa in format
  ers.c: In function ‘print_rule’:
  ers.c:304: warning: unknown conversion type character 0xa in format
  ers.c: In function ‘test_evaluate’:
  ers.c:380: warning: unknown conversion type character 0xa in format
  </pre>
  
  <p>Which refer to these lines of code:</p>
  
  <pre><code> if(i%100==0)printf("best on training set at iteration %d:  %g\%\n", i,100.0* population[bestinpop].acc);
  
  printf("ACCURACY on training set %g\%\n\n", 100.0* r-&gt;acc);
  
  printf("TEST ACCURACY %g\%\n", 100.0* r-&gt;acc);
  </code></pre>
  
  <p>I suspect it to be something to do with that %g type formatting.</p>
  
  <p>Can anyone see what is being done wrong?</p>