foo.cc: In function 'int main()':
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
~~~~~^~~~~~~~~
foo.cc:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:36:14: warning: 'ans2' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<ans1*ans2<<endl;
^~~~
foo.cc:36:14: warning: 'ans1' may be used uninitialized in this function [-Wmaybe-uninitialized]