prog.c: In function ‘type0’:
prog.c:14:32: warning: variable ‘c1_shift’ set but not used [-Wunused-but-set-variable]
unsigned long long int c1_shift;
^~~~~~~~
prog.c:13:32: warning: variable ‘c0_shift’ set but not used [-Wunused-but-set-variable]
unsigned long long int c0_shift;
^~~~~~~~
prog.c:12:32: warning: variable ‘US_shift’ set but not used [-Wunused-but-set-variable]
unsigned long long int US_shift;
^~~~~~~~
prog.c:11:32: warning: variable ‘UI_shift’ set but not used [-Wunused-but-set-variable]
unsigned long long int UI_shift;
^~~~~~~~
prog.c:57:11: error: ‘UI_shift’ undeclared (first use in this function)
answer = UI_shift + UI_shift + c0_shift + c1_shift;
^~~~~~~~
prog.c:57:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:57:33: error: ‘c0_shift’ undeclared (first use in this function)
answer = UI_shift + UI_shift + c0_shift + c1_shift;
^~~~~~~~
prog.c:57:44: error: ‘c1_shift’ undeclared (first use in this function)
answer = UI_shift + UI_shift + c0_shift + c1_shift;
^~~~~~~~
prog.c: In function ‘main’:
prog.c:64:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&task_type);
^~~~~~~~~~~~~~~~~~~~~~
prog.c:69:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",str);
^~~~~~~~~~~~~~~
prog.c:74:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u", &UI);
^~~~~~~~~~~~~~~~
prog.c:76:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hu", &US);
^~~~~~~~~~~~~~~~~
prog.c:78:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",c);
^~~~~~~~~~~~~