prog.c: In function ‘compw’:
prog.c:7:12: error: dereferencing pointer to incomplete type ‘struct data’
return (p1->x) - (p2->x);
^~
prog.c: In function ‘comph’:
prog.c:13:12: error: dereferencing pointer to incomplete type ‘struct data’
return (p1->y) - (p2->y);
^~
prog.c: In function ‘compw’:
prog.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘comph’:
prog.c:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^