Skip to content

Commit 27a4bb4

Browse files
committed
style: use auto
1 parent 661ce2c commit 27a4bb4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

math/ncr_modulo_p.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ int main() {
169169
// populate the fac array
170170
const uint64_t size = 1e6 + 1;
171171
const uint64_t p = 1e9 + 7;
172-
const math::ncr_modulo_p::NCRModuloP ncrObj =
173-
math::ncr_modulo_p::NCRModuloP(size, p);
172+
const auto ncrObj = math::ncr_modulo_p::NCRModuloP(size, p);
174173
// test 6Ci for i=0 to 7
175174
for (int i = 0; i <= 7; i++) {
176175
std::cout << 6 << "C" << i << " = " << ncrObj.ncr(6, i) << "\n";

0 commit comments

Comments
 (0)