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_20974300_14488.cpp:29:60: error: stray '#' in program
         if(n&1)ans=(pow_mod(2,n-1)-1)*pow_mod(3,mod-2)%mod+2;
                                                            ^
0_0_20974300_14488.cpp:30:58: error: stray '#' in program
         else ans=(pow_mod(2,n-1)-2)*pow_mod(3,mod-2)%mod+2;
                                                          ^
0_0_20974300_14488.cpp:31:26: error: stray '#' in program
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                          ^
0_0_20974300_14488.cpp:31:31: error: stray '#' in program
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                               ^
0_0_20974300_14488.cpp:31:54: error: stray '#' in program
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                                                      ^
0_0_20974300_14488.cpp: In function 'int main()':
0_0_20974300_14488.cpp:30:9: error: 'else' without a previous 'if'
         else ans=(pow_mod(2,n-1)-2)*pow_mod(3,mod-2)%mod+2;
         ^
0_0_20974300_14488.cpp:31:27: error: lvalue required as unary '&' operand
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                           ^
0_0_20974300_14488.cpp:31:32: error: lvalue required as unary '&' operand
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                                ^
0_0_20974300_14488.cpp:31:39: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                                       ^
0_0_20974300_14488.cpp:31:57: error: expected ')' before ';' token
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                                                         ^
0_0_20974300_14488.cpp:31:61: error: expected ';' before ')' token
         cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
                                                             ^


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-28 19:18:29, Gzip enabled