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_32607963_10816.cpp:3:41: error: redefinition of 'long long int n'
 long long exp_mod(long long n,long long n,long long b)
                                         ^
0_0_32607963_10816.cpp:3:29: note: 'long long int n' previously declared here
 long long exp_mod(long long n,long long n,long long b)
                             ^
0_0_32607963_10816.cpp: In function 'long long int exp_mod(long long int, long long int)':
0_0_32607963_10816.cpp:8:22: error: too many arguments to function 'long long int exp_mod(long long int, long long int)'
     t=exp_mod(n,n/2,b);
                      ^
0_0_32607963_10816.cpp:3:11: note: declared here
 long long exp_mod(long long n,long long n,long long b)
           ^
0_0_32607963_10816.cpp: In function 'int main()':
0_0_32607963_10816.cpp:22:29: error: too many arguments to function 'long long int exp_mod(long long int, long long int)'
         cout<<exp_mod(n,n,10)<<endl;
                             ^
0_0_32607963_10816.cpp:3:11: note: declared here
 long long exp_mod(long long n,long long n,long long b)
           ^


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-26 05:49:08, Gzip enabled