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_25963049_26205.cpp:5:1: error: expected ',' or ';' before 'const'
 const int mod = 1e9+7;
 ^
0_0_25963049_26205.cpp: In member function 'matrix matrix::operator*(matrix&)':
0_0_25963049_26205.cpp:18:20: error: 'mod' was not declared in this scope
     ans.a[i][j] %= mod;
                    ^
0_0_25963049_26205.cpp: In function 'int main()':
0_0_25963049_26205.cpp:66:88: error: 'mod' was not declared in this scope
    ans1 = (qmatrix.a[0][0]*ans[0] + qmatrix.a[0][1]*ans[1] + qmatrix.a[0][2]*ans[2]) % mod;
                                                                                        ^


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 04:26:01, Gzip enabled