Problem switches
User mofumofu
Submission Time 2024-07-14 03:13:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

switches.cpp: In function ‘void solve()’:
switches.cpp:300:5: error: ‘k’ was not declared in this scope
300 | if(k == 1){
| ^
switches.cpp:306:12: error: ‘n’ was not declared in this scope
306 | rep(i, 1, n + 1){
| ^
switches.cpp:16:37: note: in definition of macro ‘rep’
16 | #define rep(i,a,b) for(ll i=(a); i<(b); i++)
| ^
switches.cpp:309:15: error: ‘k’ was not declared in this scope
309 | if(i < x * k || (n - i + 1) < x){
| ^
switches.cpp:312:28: error: ‘k’ was not declared in this scope
312 | y += comb.binom(n - x * k, i - x * k) * comb.binom(n - i + 1, x) * (x % 2 == 0 ? 1 : -1);
| ^