title: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’
body: <p>Each time I submit a program on hackerrank the following error occurs. </p>
  
  <pre><code>solution.c: In function ‘main’:
  solution.c:22:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
   printf("%d", &amp;sum);
  </code></pre>
  
  <p>It would be very helpful if someone could tell me what this means?</p>