foo.cc: In function 'int main()':
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&t);
  ~~~~~^~~~~~~~~
foo.cc:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d",&c1,&c2,&c3);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d%d%d",&a1,&a2,&a3,&a4,&a5);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~