crazy.cpp: In function 'int main()':
crazy.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d",&test);
| ~~~~~^~~~~~~~~~~~
crazy.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
crazy.cpp:11:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | for(i=0;i<n;i++)scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~