0_0_22078639_8835.cpp:3:7: error: 'LL' does not name a type
const LL mod = 1e9 + 7;
^
0_0_22078639_8835.cpp:7:2: error: 'LL' does not name a type
LL ma[4][4];
^
0_0_22078639_8835.cpp: In function 'node Mult(node, node)':
0_0_22078639_8835.cpp:16:6: error: 'struct node' has no member named 'ma'
c.ma[i][j] = 0;
^
0_0_22078639_8835.cpp:18:7: error: 'struct node' has no member named 'ma'
c.ma[i][j] = (c.ma[i][j] + tmp.ma[i][k] * x.ma[k][j]%mod) % mod;
^
0_0_22078639_8835.cpp:18:21: error: 'struct node' has no member named 'ma'
c.ma[i][j] = (c.ma[i][j] + tmp.ma[i][k] * x.ma[k][j]%mod) % mod;
^
0_0_22078639_8835.cpp:18:36: error: 'struct node' has no member named 'ma'
c.ma[i][j] = (c.ma[i][j] + tmp.ma[i][k] * x.ma[k][j]%mod) % mod;
^
0_0_22078639_8835.cpp:18:49: error: 'struct node' has no member named 'ma'
c.ma[i][j] = (c.ma[i][j] + tmp.ma[i][k] * x.ma[k][j]%mod) % mod;
^
0_0_22078639_8835.cpp:18:58: error: 'mod' was not declared in this scope
c.ma[i][j] = (c.ma[i][j] + tmp.ma[i][k] * x.ma[k][j]%mod) % mod;
^
0_0_22078639_8835.cpp: At global scope:
0_0_22078639_8835.cpp:22:18: error: 'LL' has not been declared
node Pow(node x, LL n)
^
0_0_22078639_8835.cpp: In function 'node Pow(node, int)':
0_0_22078639_8835.cpp:28:8: error: 'struct node' has no member named 'ma'
tmp.ma[i][j] = (i == j);
^
0_0_22078639_8835.cpp: At global scope:
0_0_22078639_8835.cpp:37:1: error: 'LL' does not name a type
LL n;
^
0_0_22078639_8835.cpp: In function 'int main()':
0_0_22078639_8835.cpp:40:2: error: 'cin' was not declared in this scope
cin >> T;
^
0_0_22078639_8835.cpp:42:18: error: 'n' was not declared in this scope
scanf("%lld", &n);
^
0_0_22078639_8835.cpp:42:19: error: 'scanf' was not declared in this scope
scanf("%lld", &n);
^
0_0_22078639_8835.cpp:43:30: error: 'printf' was not declared in this scope
if (n == 2) { printf("31\n"); continue; }
^
0_0_22078639_8835.cpp:45:31: error: 'printf' was not declared in this scope
if (n == 3) { printf("197\n"); continue; }
^
0_0_22078639_8835.cpp:47:32: error: 'printf' was not declared in this scope
if (n == 4) { printf("1255\n"); continue; }
^
0_0_22078639_8835.cpp:49:15: error: 'struct node' has no member named 'ma'
memset(init.ma, 0, sizeof(init.ma));
^
0_0_22078639_8835.cpp:49:34: error: 'struct node' has no member named 'ma'
memset(init.ma, 0, sizeof(init.ma));
^
0_0_22078639_8835.cpp:49:37: error: 'memset' was not declared in this scope
memset(init.ma, 0, sizeof(init.ma));
^
0_0_22078639_8835.cpp:50:8: error: 'struct node' has no member named 'ma'
init.ma[0][0] = 4;
^
0_0_22078639_8835.cpp:51:8: error: 'struct node' has no member named 'ma'
init.ma[1][0] = 17;
^
0_0_22078639_8835.cpp:52:8: error: 'struct node' has no member named 'ma'
init.ma[2][0] = -12;
^
0_0_22078639_8835.cpp:53:8: error: 'struct node' has no member named 'ma'
init.ma[3][0] = 16;
^
0_0_22078639_8835.cpp:54:8: error: 'struct node' has no member named 'ma'
init.ma[0][1] = init.ma[1][2] = init.ma[3][3] = 1;
^
0_0_22078639_8835.cpp:54:24: error: 'struct node' has no member named 'ma'
init.ma[0][1] = init.ma[1][2] = init.ma[3][3] = 1;
^
0_0_22078639_8835.cpp:54:40: error: 'struct node' has no member named 'ma'
init.ma[0][1] = init.ma[1][2] = init.ma[3][3] = 1;
^
0_0_22078639_8835.cpp:56:15: error: 'struct node' has no member named 'ma'
memset(init.ma, 0, sizeof(init.ma));
^
0_0_22078639_8835.cpp:56:34: error: 'struct node' has no member named 'ma'
memset(init.ma, 0, sizeof(init.ma));
^
0_0_22078639_8835.cpp:57:8: error: 'struct node' has no member named 'ma'
init.ma[0][0] = 1255, init.ma[0][1] = 197, init.ma[0][2] = 31, init.ma[0][4] = 1;
^
0_0_22078639_8835.cpp:57:30: error: 'struct node' has no member named 'ma'
init.ma[0][0] = 1255, init.ma[0][1] = 197, init.ma[0][2] = 31, init.ma[0][4] = 1;
^
0_0_22078639_8835.cpp:57:51: error: 'struct node' has no member named 'ma'
init.ma[0][0] = 1255, init.ma[0][1] = 197, init.ma[0][2] = 31, init.ma[0][4] = 1;
^
0_0_22078639_8835.cpp:57:71: error: 'struct node' has no member named 'ma'
init.ma[0][0] = 1255, init.ma[0][1] = 197, init.ma[0][2] = 31, init.ma[0][4] = 1;
^
0_0_22078639_8835.cpp:59:25: error: 'struct node' has no member named 'ma'
printf("%lld\n", (res.ma[0][0]%mod+mod)%mod);
^
0_0_22078639_8835.cpp:59:34: error: 'mod' was not declared in this scope
printf("%lld\n", (res.ma[0][0]%mod+mod)%mod);
^
0_0_22078639_8835.cpp:59:46: error: 'printf' was not declared in this scope
printf("%lld\n", (res.ma[0][0]%mod+mod)%mod);
^
|