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_36006271_3358.cpp:4:1: error: expected initializer before 'const'
 const ll mod=1e9+7;
 ^
0_0_36006271_3358.cpp:5:1: error: 'll' does not name a type
 ll ksm(ll n,ll m){
 ^
0_0_36006271_3358.cpp: In function 'int main()':
0_0_36006271_3358.cpp:17:5: error: 'll' was not declared in this scope
     ll n;
     ^
0_0_36006271_3358.cpp:18:26: error: 'n' was not declared in this scope
     while(~scanf("%dll",&n)){
                          ^
0_0_36006271_3358.cpp:19:12: error: expected ';' before 'a'
         ll a=n+(ll)1 ;
            ^
0_0_36006271_3358.cpp:20:15: error: 'a' was not declared in this scope
         cout<<a*ksm((ll)2*n,mod-2)%mod<<endl;
               ^
0_0_36006271_3358.cpp:20:25: error: expected ')' before numeric constant
         cout<<a*ksm((ll)2*n,mod-2)%mod<<endl;
                         ^
0_0_36006271_3358.cpp:20:29: error: 'mod' was not declared in this scope
         cout<<a*ksm((ll)2*n,mod-2)%mod<<endl;
                             ^
0_0_36006271_3358.cpp:20:34: error: 'ksm' was not declared in this scope
         cout<<a*ksm((ll)2*n,mod-2)%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-25 11:32:05, Gzip enabled