title: Scanf complie errors ;I need to understand the errors that occured as i compiled this program
body: <pre><code>#include&lt;stdio.h&gt;
  #define N 16
  int main(void)
  {
   int borrow=0;
   int radix=2;
   int i=0;
   int x[N]={0};
   int y[N]={0};
   int di[N]={0};
   int hex1;
   int hex2;
   int j;
  
   scanf("%i,%i,&amp;hex1,&amp;hex2");
  
  //error: warning: format ‘%i’ expects a matching ‘int *’ argument [-Wformat=]
  
   scanf("%i,%i,&amp;hex1,&amp;hex2");//
             ^
  
  //error2:format ‘%i’ expects a matching ‘int *’ argument [-Wformat=]
  
  scanf("%i,%i,&amp;hex1,&amp;hex2");//
                ^
  }
  </code></pre>