0_0_38900275_14447.cpp:7:11: error: 'int64_t' does not name a type
7 | constexpr int64_t MOD = 10000007;
| ^~~~~~~
0_0_38900275_14447.cpp:4:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
3 | #include <vector>
+++ |+#include <cstdint>
4 | #pragma GCC target("avx2,avx,mmx,fma")
0_0_38900275_14447.cpp:9:18: error: 'int64_t' was not declared in this scope
9 | typedef valarray<int64_t> vec;
| ^~~~~~~
0_0_38900275_14447.cpp:9:18: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_38900275_14447.cpp:9:25: error: template argument 1 is invalid
9 | typedef valarray<int64_t> vec;
| ^
0_0_38900275_14447.cpp: In function 'mat operator*(const mat&, const mat&)':
0_0_38900275_14447.cpp:14:32: error: request for member 'size' in '(& a)->std::vector<int>::operator[](0)', which is of non-class type 'const __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'const int'}
14 | int n = a.size(), t = a[0].size(), m = b[0].size();
| ^~~~
0_0_38900275_14447.cpp:15:20: error: 'm' was not declared in this scope
15 | mat ret(n, vec(m));
| ^
0_0_38900275_14447.cpp:20:14: error: invalid types 'vec {aka int}[int]' for array subscript
20 | T[k] = b[k][j];
| ^
0_0_38900275_14447.cpp:20:24: error: invalid types 'const __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka const int}[int]' for array subscript
20 | T[k] = b[k][j];
| ^
0_0_38900275_14447.cpp:23:19: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
23 | ret[i][j] = (a[i] * T % MOD).sum() % MOD;
| ^
0_0_38900275_14447.cpp:23:37: error: 'MOD' was not declared in this scope
23 | ret[i][j] = (a[i] * T % MOD).sum() % MOD;
| ^~~
0_0_38900275_14447.cpp: At global scope:
0_0_38900275_14447.cpp:30:17: error: 'int64_t' has not been declared
30 | mat pow(mat& a, int64_t n) {
| ^~~~~~~
0_0_38900275_14447.cpp: In function 'mat pow(mat&, int)':
0_0_38900275_14447.cpp:34:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
34 | ret[i][i] = 1;
| ^
0_0_38900275_14447.cpp: In function 'int main()':
0_0_38900275_14447.cpp:51:5: error: 'int64_t' was not declared in this scope
51 | int64_t k;
| ^~~~~~~
0_0_38900275_14447.cpp:51:5: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_38900275_14447.cpp:52:26: error: 'k' was not declared in this scope
52 | scanf("%d%lld", &n, &k);
| ^
0_0_38900275_14447.cpp:65:16: error: expected ';' before 'p'
65 | int64_t p = I[n - 2], q = I[n - 1];
| ^~
| ;
0_0_38900275_14447.cpp:66:57: error: could not convert '{{1, 1, 1}, {0, 1, 1}, {0, 1, 0}}' from '<brace-enclosed initializer list>' to 'mat' {aka 'std::vector<int>'}
66 | mat a = { { 1, 1, 1 }, { 0, 1, 1 }, { 0, 1, 0 } };
| ^
| |
| <brace-enclosed initializer list>
0_0_38900275_14447.cpp:68:16: error: expected ';' before 'P'
68 | int64_t P = (ans[0][0] - ans[1][0]) % MOD,
| ^~
| ;
0_0_38900275_14447.cpp:70:27: error: 'p' was not declared in this scope
70 | printf("%lld", (((p * P) % MOD + (q * Q) % MOD + sum) % MOD + MOD) % MOD);
| ^
0_0_38900275_14447.cpp:70:31: error: 'P' was not declared in this scope
70 | printf("%lld", (((p * P) % MOD + (q * Q) % MOD + sum) % MOD + MOD) % MOD);
| ^
0_0_38900275_14447.cpp:70:36: error: 'MOD' was not declared in this scope
70 | printf("%lld", (((p * P) % MOD + (q * Q) % MOD + sum) % MOD + MOD) % MOD);
| ^~~
0_0_38900275_14447.cpp:70:43: error: 'q' was not declared in this scope
70 | printf("%lld", (((p * P) % MOD + (q * Q) % MOD + sum) % MOD + MOD) % MOD);
| ^
0_0_38900275_14447.cpp:70:47: error: 'Q' was not declared in this scope
70 | printf("%lld", (((p * P) % MOD + (q * Q) % MOD + sum) % MOD + MOD) % MOD);
| ^
|