/ Vijos /

记录详情

Compile Error

/in/foo.cc:13:5: error: '__int64' does not name a type; did you mean '__int64_t'?
     __int64 m[MAXN][MAXN];
     ^~~~~~~
     __int64_t
/in/foo.cc: In function 'mat muti(mat, mat)':
/in/foo.cc:19:16: error: 'struct mat' has no member named 'm'
     memset(res.m, 0, sizeof(res.m));
                ^
/in/foo.cc:19:33: error: 'struct mat' has no member named 'm'
     memset(res.m, 0, sizeof(res.m));
                                 ^
/in/foo.cc:23:14: error: 'struct mat' has no member named 'm'
         if(a.m[i][j]){
              ^
/in/foo.cc:25:21: error: 'struct mat' has no member named 'm'
                 res.m[i][k] = (res.m[i][k] + a.m[i][j]*b.m[j][k])%Mod;
                     ^
/in/foo.cc:25:36: error: 'struct mat' has no member named 'm'
                 res.m[i][k] = (res.m[i][k] + a.m[i][j]*b.m[j][k])%Mod;
                                    ^
/in/foo.cc:25:48: error: 'struct mat' has no member named 'm'
                 res.m[i][k] = (res.m[i][k] + a.m[i][j]*b.m[j][k])%Mod;
                                                ^
/in/foo.cc:25:58: error: 'struct mat' has no member named 'm'
                 res.m[i][k] = (res.m[i][k] + a.m[i][j]*b.m[j][k])%Mod;
                                                          ^
/in/foo.cc: In function 'mat qpow(mat, int)':
/in/foo.cc:36:16: error: 'struct mat' has no member named 'm'
     memset(res.m, 0, sizeof(res));
                ^
/in/foo.cc:37:37: error: 'struct mat' has no member named 'm'
     for(int i = 1; i <= K; i++) res.m[i][i] = 1;
                                     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:49:17: error: 'struct mat' has no member named 'm'
     memset(base.m, 0, sizeof(base.m));
                 ^
/in/foo.cc:49:35: error: 'struct mat' has no member named 'm'
     memset(base.m, 0, sizeof(base.m));
                                   ^
/in/foo.cc:51:14: error: 'struct mat' has no member named 'm'
         base.m[i][1] = 1;
              ^
/in/foo.cc:52:10: error: 'struct mat' has no member named 'm'
     base.m[K][1] = 2;
          ^
/in/foo.cc:54:36: error: 'struct mat' has no member named 'm'
     if(N <= K) printf("%d\n", base.m[N][1]);
                                    ^
/in/foo.cc:56:20: error: 'struct mat' has no member named 'm'
         memset(tmp.m, 0, sizeof(tmp.m));
                    ^
/in/foo.cc:56:37: error: 'struct mat' has no member named 'm'
         memset(tmp.m, 0, sizeof(tmp.m));
                                     ^
/in/foo.cc:58:17: error: 'struct mat' has no member named 'm'
             tmp.m[i][i+1] = 1;
                 ^
/in/foo.cc:60:41: error: 'struct mat' has no member named 'm'
         for(int i = 1; i <= K; i++) tmp.m[K][i] = 1;
                                         ^
/in/foo.cc:65:28: error: 'struct mat' has no member named 'm'
         printf("%d\n", ans.m[K][1]%Mod);
                            ^

信息

递交者
类型
递交
题目
P1067 Warcraft III 守望者的烦恼
语言
C++
递交时间
2018-11-12 18:32:05
评测时间
2018-11-12 18:32:05
评测机
分数
0
总耗时
354ms
峰值内存
35.312 MiB