title: C program using struct and scanf produces error: expected expression before ‘ROBOT’
body: <p>I have a C program where I am trying to set <code>struct</code> values with scanf.  I get an error:</p>
  
  <pre><code>s.c: In function ‘main’:
  s.c:15:17: error: expected expression before ‘ROBOT’
  </code></pre>
  
  <p>From this code:</p>
  
  <pre><code>enum DIRECTION {N,E,S,W};     
  
  typedef struct {
     int xpos;
     int ypos;
     enum DIRECTION dir;
  } ROBOT;
  
  int main() {
     int x, y, i;
     char string[20];
     printf("Enter x coordinate: \n");
     scanf("%i", &amp;ROBOT.xpos);
  }
  </code></pre>
  
  <p>What does this error mean and what am I doing wrong?</p>