prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^~~~
prog.c: In function ‘main’:
prog.c:12:15: error: invalid type argument of unary ‘*’ (have ‘int’)
calculate(*a,*b);
^~
prog.c:12:18: error: invalid type argument of unary ‘*’ (have ‘int’)
calculate(*a,*b);
^~
prog.c:5:17: warning: variable ‘q’ set but not used [-Wunused-but-set-variable]
int a,b,*p,*q;
^
prog.c:5:14: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
int a,b,*p,*q;
^