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_24688347_26109.cpp:50:11: error: redefinition of 'const int maxn'
 const int maxn = 1e3+10;
           ^
0_0_24688347_26109.cpp:4:11: note: 'const int maxn' previously defined here
 const int maxn = 1e3+10;
           ^
0_0_24688347_26109.cpp:51:11: error: redefinition of 'const int mod'
 const int mod = 1e8+7;
           ^
0_0_24688347_26109.cpp:5:11: note: 'const int mod' previously defined here
 const int mod = 1e8+7;
           ^
0_0_24688347_26109.cpp:52:11: error: redefinition of 'long long int dp [1010]'
 ll dp[maxn],gcd[maxn][maxn];
           ^
0_0_24688347_26109.cpp:6:4: note: 'long long int dp [1010]' previously declared here
 ll dp[maxn],gcd[maxn][maxn];
    ^
0_0_24688347_26109.cpp:52:27: error: redefinition of 'long long int gcd [1010][1010]'
 ll dp[maxn],gcd[maxn][maxn];
                           ^
0_0_24688347_26109.cpp:6:13: note: 'long long int gcd [1010][1010]' previously declared here
 ll dp[maxn],gcd[maxn][maxn];
             ^
0_0_24688347_26109.cpp:53:13: error: redefinition of 'int num [1010]'
 int num[maxn];
             ^
0_0_24688347_26109.cpp:7:5: note: 'int num [1010]' previously declared here
 int num[maxn];
     ^
0_0_24688347_26109.cpp: In function 'long long int GCD(long long int, long long int)':
0_0_24688347_26109.cpp:54:4: error: redefinition of 'long long int GCD(long long int, long long int)'
 ll GCD(ll a, ll b){
    ^
0_0_24688347_26109.cpp:8:4: note: 'long long int GCD(long long int, long long int)' previously defined here
 ll GCD(ll a, ll b){
    ^
0_0_24688347_26109.cpp: In function 'void init()':
0_0_24688347_26109.cpp:58:6: error: redefinition of 'void init()'
 void init(){
      ^
0_0_24688347_26109.cpp:12:6: note: 'void init()' previously defined here
 void init(){
      ^
0_0_24688347_26109.cpp: In function 'int main()':
0_0_24688347_26109.cpp:66:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_24688347_26109.cpp:20:5: note: 'int main()' previously defined here
 int main(){
     ^


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-29 07:46:18, Gzip enabled