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_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);
                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 10:24:44, Gzip enabled