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_23384026_21267.cpp: In function 'int main()':
0_0_23384026_21267.cpp:2:21: error: expected ')' before ';' token
 #define M 1000000007;
                     ^
0_0_23384026_21267.cpp:6:12: note: in expansion of macro 'M'
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
            ^
0_0_23384026_21267.cpp:6:15: error: expected primary-expression before '/' token
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
               ^
0_0_23384026_21267.cpp:6:16: error: 'j' was not declared in this scope
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                ^
0_0_23384026_21267.cpp:6:24: error: expected primary-expression before '%' token
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                        ^
0_0_23384026_21267.cpp:6:29: error: expected primary-expression before ',' token
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                             ^
0_0_23384026_21267.cpp:6:32: error: 'i' was not declared in this scope
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                                ^
0_0_23384026_21267.cpp:2:21: error: expected ')' before ';' token
 #define M 1000000007;
                     ^
0_0_23384026_21267.cpp:6:71: note: in expansion of macro 'M'
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                                                                       ^
0_0_23384026_21267.cpp:6:72: error: expected primary-expression before ')' token
    inv[j]=(M-M/j)*inv[M%j]%M,m[i]=((m[i-1]*((i<<1)+1)+m[i-2]*(i*3-3))%M)*inv[j]%M;
                                                                        ^


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-07-04 06:15:26, Gzip enabled