Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:27:38: error: 'j' was not declared in this scope if(i&1)ans=(ans-1ll*inv[i]*inv[k-j-1]%mod*(ksm(k-j,n-1)+1ll*ksm(k-j,n-2)*(n-1)%mod)%mod)%mod; ^ /in/foo.cc:28:36: error: 'j' was not declared in this scope else ans=(ans+1ll*inv[i]*inv[k-j-1]%mod*(ksm(k-j,n-1)+1ll*ksm(k-j,n-2)*(n-1)%mod)%mod)%mod; ^
信息
- 递交者
- 类型
- 自测
- 题目
- P1000 A+B Problem
- 语言
- C++
- 递交时间
- 2018-04-18 10:40:45
- 评测时间
- 2018-04-18 10:40:45
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes