foo.cc: In function 'int main()':
foo.cc:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
foo.cc:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d %d %d %d",&a,&b,&c,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int KSC(int, int, int)':
foo.cc:28:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | return ans;
| ^~~
foo.cc: In function 'int main()':
foo.cc:39:38: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
39 | printf("%d\n",(KSC(b-a,k-1,200907)+a)%200907);
| ~~~~~~~~~~~~~~~~~~~~^~~
[Hydro](https://hydro.ac)提供评测服务