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_17201134_21003.cpp: In function 'int Pow(int, int)':
0_0_17201134_21003.cpp:79:5: error: redefinition of 'int Pow(int, int)'
 int Pow(int a,int b)
     ^
0_0_17201134_21003.cpp:18:5: note: 'int Pow(int, int)' previously defined here
 int Pow(int a,int b)
     ^
0_0_17201134_21003.cpp: In function 'int solve(int)':
0_0_17201134_21003.cpp:99:16: error: ambiguating new declaration of 'int solve(int)'
 int solve(int n)
                ^
0_0_17201134_21003.cpp:38:6: note: old declaration 'void solve(int)'
 void solve(int n)
      ^
0_0_17201134_21003.cpp: In function 'int main()':
0_0_17201134_21003.cpp:119:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17201134_21003.cpp:62:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17201134_21003.cpp:127:43: error: invalid use of void expression
         printf("Case #%d: %d\n",i,solve(n));
                                           ^


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 22:31:53, Gzip enabled