clo.cpp: In function 'int main()':
clo.cpp:49:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ir < ord.size()){
~~~^~~~~~~~~~~~
clo.cpp:50:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(il < com.size() && com[il].freq >= ord[ir].freq){
~~~^~~~~~~~~~~~
clo.cpp:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
clo.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&c,&f,&v);
~~~~~^~~~~~~~~~~~~~~~~~~~~
clo.cpp:35:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
~~~~~^~~~~~~~~
clo.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&c,&f,&v);
~~~~~^~~~~~~~~~~~~~~~~~~~~