title: Warning: ignoring return value of 'scanf', declared with attribute warn_unused_result
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
      int t;
      scanf("%d", &amp;t);
      printf("%d", t);
      return 0;
  }
  </code></pre>
  
  <p>I compiled the above C code using ideone.com and the following warning popped up:</p>
  
  <blockquote>
    <p>prog.c: In function ‘main’:<br>
    prog.c:5: warning: ignoring return value
    of ‘scanf’, declared with attribute warn_unused_result</p>
  </blockquote>
  
  <p>Can someone help me understand this warning?</p>