0_0_36418681_17148.cpp:8:9: error: 'pair' does not name a type
typedef pair<int, int> pii;
^
0_0_36418681_17148.cpp:9:9: error: 'vector' does not name a type
typedef vector<ll> vi;
^
0_0_36418681_17148.cpp:10:9: error: 'vector' does not name a type
typedef vector<vi> mat;
^
0_0_36418681_17148.cpp:14:1: error: 'mat' does not name a type
mat matMul(const mat& a,const mat& b){
^
0_0_36418681_17148.cpp:25:1: error: 'mat' does not name a type
mat matPow(mat a,int k){
^
0_0_36418681_17148.cpp: In function 'int main()':
0_0_36418681_17148.cpp:43:5: error: 'cin' was not declared in this scope
cin.tie(0)->sync_with_stdio(0);
^
0_0_36418681_17148.cpp:51:9: error: 'mat' was not declared in this scope
mat g(2*n,vi(2*n));
^
0_0_36418681_17148.cpp:57:17: error: 'g' was not declared in this scope
g[u][v+n] = 1;
^
0_0_36418681_17148.cpp:62:17: error: 'g' was not declared in this scope
g[u][v] = 1;
^
0_0_36418681_17148.cpp:70:30: error: 'g' was not declared in this scope
rep(j,0,2*n)cnt+=g[i][j];
^
0_0_36418681_17148.cpp:72:28: error: 'g' was not declared in this scope
rep(j,0,2*n)if(g[i][j]==1)g[i][j] = x;
^
0_0_36418681_17148.cpp:74:13: error: expected ';' before 'A'
mat A = matPow(g,k);
^
0_0_36418681_17148.cpp:75:9: error: 'cout' was not declared in this scope
cout<<A[0][2*n-1]<<"\n";
^
0_0_36418681_17148.cpp:75:15: error: 'A' was not declared in this scope
cout<<A[0][2*n-1]<<"\n";
^
|