trener.cpp: In function 'int main()':
trener.cpp:22:27: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
int res = ct[1-i&1][X];
~^~
trener.cpp:23:36: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
if (X != Y) res += ct[1-i&1][Y];
~^~
trener.cpp:29:13: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
ct[1-i&1].clear();
~^~
trener.cpp:31:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
printf("%d",ans%mod);
~~~~~~~^
trener.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
~~~~~^~~~~~~~~~~~~~