prog.c: In function 'main':
prog.c:15:7: warning: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
num1=strtol(s, &end, 16);
^
prog.c:19:17: error: 'num' undeclared (first use in this function)
printf("%d\n", num);
^
prog.c:19:17: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:6: warning: variable 'num4' set but not used [-Wunused-but-set-variable]
int num4;
^
prog.c:10:6: warning: variable 'num3' set but not used [-Wunused-but-set-variable]
int num3;
^
prog.c:9:6: warning: variable 'num2' set but not used [-Wunused-but-set-variable]
int num2;
^
prog.c:8:6: warning: variable 'num1' set but not used [-Wunused-but-set-variable]
int num1;
^