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_29617121_2006.cpp:2:29: error: '__int' has not been declared
 __int64 quick_pow(__int64 a,__int 64 b,__int64 mod)
                             ^
0_0_29617121_2006.cpp:2:35: error: expected ',' or '...' before numeric constant
 __int64 quick_pow(__int64 a,__int 64 b,__int64 mod)
                                   ^
0_0_29617121_2006.cpp: In function 'long long int quick_pow(long long int, int)':
0_0_29617121_2006.cpp:5:10: error: 'b' was not declared in this scope
    while(b)
          ^
0_0_29617121_2006.cpp:7:22: error: 'mod' was not declared in this scope
     if(b&1)ans=ans*a%mod;
                      ^
0_0_29617121_2006.cpp:8:11: error: 'mod' was not declared in this scope
     a=a*a%mod;
           ^
0_0_29617121_2006.cpp: In function 'int main()':
0_0_29617121_2006.cpp:20:43: error: too many arguments to function 'long long int quick_pow(long long int, int)'
      else printf("%l64d\n",quick_pow(2,n,p));
                                           ^
0_0_29617121_2006.cpp:2:9: note: declared here
 __int64 quick_pow(__int64 a,__int 64 b,__int64 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-12-02 14:04:24, Gzip enabled