0_0_30381729_7883.cpp:2:9: error: 'vector' does not name a type
typedef vector<long long> vec;
^
0_0_30381729_7883.cpp:3:9: error: 'vector' does not name a type
typedef vector<vec> mat;
^
0_0_30381729_7883.cpp:5:1: error: 'mat' does not name a type
mat mul(mat &A, mat &B){
^
0_0_30381729_7883.cpp:17:1: error: 'mat' does not name a type
mat pow(mat A, ll n){
^
0_0_30381729_7883.cpp: In function 'int main()':
0_0_30381729_7883.cpp:32:19: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_30381729_7883.cpp:36:9: error: 'mat' was not declared in this scope
mat A(3, vec(3));
^
0_0_30381729_7883.cpp:37:9: error: 'A' was not declared in this scope
A[0][0] = 1; A[0][1] = 0; A[0][2] = 1;
^
0_0_30381729_7883.cpp:40:25: error: 'pow' was not declared in this scope
A = pow(A, n - 2);
^
0_0_30381729_7883.cpp:41:9: error: 'll' was not declared in this scope
ll ans = (A[2][0] * 6 + A[2][1] * 4 + A[2][2] * 3) % mod;
^
0_0_30381729_7883.cpp:42:26: error: 'ans' was not declared in this scope
printf("%lld\n", ans);
^
0_0_30381729_7883.cpp:42:29: error: 'printf' was not declared in this scope
printf("%lld\n", ans);
^
|