foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d", &num_a,&num_t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d", &h_a[i]);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d", &h_t[i]);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:6:2: warning: 'num_a' is used uninitialized in this function [-Wuninitialized]
6 | int h_a[num_a],h_t[num_t+1];
| ^~~
foo.c:6:26: warning: 'num_t' is used uninitialized in this function [-Wuninitialized]
6 | int h_a[num_a],h_t[num_t+1];
| ~~~~~^~
[Hydro](https://hydro.ac)提供评测服务