F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39858397_18584.cpp:1:12: error: '__int64' does not name a type
    1 | #define LL __int64
      |            ^~~~~~~
0_0_39858397_18584.cpp:2:1: note: in expansion of macro 'LL'
    2 | LL mod;
      | ^~
0_0_39858397_18584.cpp:1:12: error: '__int64' does not name a type
    1 | #define LL __int64
      |            ^~~~~~~
0_0_39858397_18584.cpp:5:5: note: in expansion of macro 'LL'
    5 |     LL ma[3][3];
      |     ^~
0_0_39858397_18584.cpp: In function 'matrix Mult(matrix, matrix)':
0_0_39858397_18584.cpp:15:17: error: 'struct matrix' has no member named 'ma'
   15 |             tmp.ma[i][j]=0;
      |                 ^~
0_0_39858397_18584.cpp:18:21: error: 'struct matrix' has no member named 'ma'
   18 |                 tmp.ma[i][j]=(tmp.ma[i][j]+x.ma[i][k]*y.ma[k][j])%mod;
      |                     ^~
0_0_39858397_18584.cpp:18:35: error: 'struct matrix' has no member named 'ma'
   18 |                 tmp.ma[i][j]=(tmp.ma[i][j]+x.ma[i][k]*y.ma[k][j])%mod;
      |                                   ^~
0_0_39858397_18584.cpp:18:46: error: 'struct matrix' has no member named 'ma'
   18 |                 tmp.ma[i][j]=(tmp.ma[i][j]+x.ma[i][k]*y.ma[k][j])%mod;
      |                                              ^~
0_0_39858397_18584.cpp:18:57: error: 'struct matrix' has no member named 'ma'
   18 |                 tmp.ma[i][j]=(tmp.ma[i][j]+x.ma[i][k]*y.ma[k][j])%mod;
      |                                                         ^~
0_0_39858397_18584.cpp:18:67: error: 'mod' was not declared in this scope
   18 |                 tmp.ma[i][j]=(tmp.ma[i][j]+x.ma[i][k]*y.ma[k][j])%mod;
      |                                                                   ^~~
0_0_39858397_18584.cpp: In function 'matrix Pow(matrix, int)':
0_0_39858397_18584.cpp:28:43: error: 'struct matrix' has no member named 'ma'
   28 |     for(i=0;i<2;i++) for(j=0;j<2;j++) tmp.ma[i][j]=(i==j);
      |                                           ^~
0_0_39858397_18584.cpp: In function 'matrix Add(matrix, matrix)':
0_0_39858397_18584.cpp:45:17: error: 'struct matrix' has no member named 'ma'
   45 |             tmp.ma[i][j]=(x.ma[i][j]+y.ma[i][j])%mod;
      |                 ^~
0_0_39858397_18584.cpp:45:29: error: 'struct matrix' has no member named 'ma'
   45 |             tmp.ma[i][j]=(x.ma[i][j]+y.ma[i][j])%mod;
      |                             ^~
0_0_39858397_18584.cpp:45:40: error: 'struct matrix' has no member named 'ma'
   45 |             tmp.ma[i][j]=(x.ma[i][j]+y.ma[i][j])%mod;
      |                                        ^~
0_0_39858397_18584.cpp:45:50: error: 'mod' was not declared in this scope
   45 |             tmp.ma[i][j]=(x.ma[i][j]+y.ma[i][j])%mod;
      |                                                  ^~~
0_0_39858397_18584.cpp: In function 'int main()':
0_0_39858397_18584.cpp:62:38: error: 'mod' was not declared in this scope
   62 |     while(scanf("%d%d%d%d",&k,&b,&n,&mod)!=EOF)
      |                                      ^~~
0_0_39858397_18584.cpp:62:11: error: 'scanf' was not declared in this scope
   62 |     while(scanf("%d%d%d%d",&k,&b,&n,&mod)!=EOF)
      |           ^~~~~
0_0_39858397_18584.cpp:62:44: error: 'EOF' was not declared in this scope
   62 |     while(scanf("%d%d%d%d",&k,&b,&n,&mod)!=EOF)
      |                                            ^~~
0_0_39858397_18584.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #define LL __int64
0_0_39858397_18584.cpp:64:14: error: 'struct matrix' has no member named 'ma'
   64 |         init.ma[0][0]=1;
      |              ^~
0_0_39858397_18584.cpp:65:14: error: 'struct matrix' has no member named 'ma'
   65 |         init.ma[0][1]=1;
      |              ^~
0_0_39858397_18584.cpp:66:14: error: 'struct matrix' has no member named 'ma'
   66 |         init.ma[1][0]=1;
      |              ^~
0_0_39858397_18584.cpp:67:14: error: 'struct matrix' has no member named 'ma'
   67 |         init.ma[1][1]=0;
      |              ^~
0_0_39858397_18584.cpp:71:30: error: 'struct matrix' has no member named 'ma'
   71 |         printf("%I64d\n",ans.ma[0][1]);
      |                              ^~
0_0_39858397_18584.cpp:71:9: error: 'printf' was not declared in this scope
   71 |         printf("%I64d\n",ans.ma[0][1]);
      |         ^~~~~~
0_0_39858397_18584.cpp:71:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 04:00:52, Gzip enabled