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_22055225_25898.cpp:1:9: error: 'vector' does not name a type
 typedef vector<ll> vec;
         ^
0_0_22055225_25898.cpp:2:9: error: 'vector' does not name a type
 typedef vector<vec> mat;
         ^
0_0_22055225_25898.cpp:3:1: error: 'll' does not name a type
 ll n;
 ^
0_0_22055225_25898.cpp:5:1: error: 'mat' does not name a type
 mat mul(mat &A, mat &B){
 ^
0_0_22055225_25898.cpp:16:1: error: 'mat' does not name a type
 mat pow(mat A, ll n){
 ^
0_0_22055225_25898.cpp: In function 'void solve()':
0_0_22055225_25898.cpp:29:5: error: 'mat' was not declared in this scope
     mat A(5, vec(5));
     ^
0_0_22055225_25898.cpp:30:5: error: 'A' was not declared in this scope
     A[0][0] = 1; A[0][1] = 1; A[0][2] = 0; A[0][3] = 2; A[0][4] = 1;
     ^
0_0_22055225_25898.cpp:35:16: error: 'n' was not declared in this scope
     A = pow(A, n - 1);
                ^
0_0_22055225_25898.cpp:35:21: error: 'pow' was not declared in this scope
     A = pow(A, n - 1);
                     ^
0_0_22055225_25898.cpp:36:5: error: 'll' was not declared in this scope
     ll ans = A[0][0] + A[0][1] + A[0][3] + A[0][4];
     ^
0_0_22055225_25898.cpp:37:22: error: 'ans' was not declared in this scope
     printf("%lld\n", ans % mod);
                      ^
0_0_22055225_25898.cpp:37:28: error: 'mod' was not declared in this scope
     printf("%lld\n", ans % mod);
                            ^
0_0_22055225_25898.cpp:37:31: error: 'printf' was not declared in this scope
     printf("%lld\n", ans % mod);
                               ^
0_0_22055225_25898.cpp: In function 'int main()':
0_0_22055225_25898.cpp:40:26: error: 'n' was not declared in this scope
     while(scanf("%lld", &n) != EOF){
                          ^
0_0_22055225_25898.cpp:40:27: error: 'scanf' was not declared in this scope
     while(scanf("%lld", &n) != EOF){
                           ^
0_0_22055225_25898.cpp:40:32: error: 'EOF' was not declared in this scope
     while(scanf("%lld", &n) != EOF){
                                ^


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-11-17 18:59:51, Gzip enabled