I have error in the line 'x=....' & 'printf(....' , during compile,
what wrong I have write in the program?

thk a lot

Code:
#include <stdio.h>
#include <math.h>

struct measure {

  int feet;
  int inch;
};

struct measure tofeetinch(float inch) {
  struct measure temp;

  temp.feet=inch /12;
  temp.inch=fmod (inch, 12);

  return temp;
}

void main(){

  int temp, x, feet=90, inch=200;
  struct measure tofeetinch;

  x=tofeetinch(inch);
  printf("x, %d", temp.inch);

  fflush(stdin);
  getchar();


}