failed to build reference: exit status 1 # command-line-arguments ./1085G.go:53:18: invalid operation: int64(res) * a (mismatched types int64 and int) ./1085G.go:55:16: invalid operation: int64(a) * a (mismatched types int64 and int) ./1085G.go:76:18: invalid operation: int64(fact[i - 1]) * i (mismatched types int64 and int) ./1085G.go:84:15: cannot use int64(i - 1) * (int64(g[i - 1]) + int64(g[i - 2]) % MOD) % MOD (value of type int64) as int value in assignment ./1085G.go:91:19: cannot use int64(gpows[i - 1]) * int64(G) % MOD (value of type int64) as int value in assignment ./1085G.go:104:23: invalid operation: int64(less) * fact[n - j - 1] (mismatched types int64 and int) ./1085G.go:108:15: invalid operation: ans + int64(rank) * int64(gpows[n - 1]) % MOD (mismatched types int and int64) ./1085G.go:134:20: invalid operation: rank + int64(good) * int64(g[n - j - 1]) % MOD (mismatched types int and int64) ./1085G.go:143:19: invalid operation: ans + int64(rank) * int64(gpows[rem]) % MOD (mismatched types int and int64) exit status 1