chocolate.cpp: In function 'int main()':
chocolate.cpp:50:13: warning: unused variable 'a' [-Wunused-variable]
int a,b;
^
chocolate.cpp:50:15: warning: unused variable 'b' [-Wunused-variable]
int a,b;
^
chocolate.cpp:56:14: warning: unused variable 'a' [-Wunused-variable]
char a,b,c;
^
chocolate.cpp:56:16: warning: unused variable 'b' [-Wunused-variable]
char a,b,c;
^
chocolate.cpp:56:18: warning: unused variable 'c' [-Wunused-variable]
char a,b,c;
^
chocolate.cpp:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&k);
~~~~~^~~~~~~~~~~~~~~~~~~~~
chocolate.cpp:48:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=m;i++) scanf("%d",&exp[i]);
~~~~~^~~~~~~~~~~~~~
chocolate.cpp:51:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&cant[i].ff,&cant[i].ss);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chocolate.cpp:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&e);
~~~~~^~~~~~~~~
chocolate.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" L + %d = %s",&num,res);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~