segments.cpp: In function 'int main()':
segments.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d%d",&q,&t);
| ~~~~~^~~~~~~~~~~~~~
segments.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&type);
| ~~~~~^~~~~~~~~~~~
segments.cpp:13:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~
segments.cpp:19:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&id);
| ~~~~~^~~~~~~~~~
segments.cpp:23:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d%d%d",&a,&b,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~