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_19993089_9127.cpp:43:11: error: redefinition of 'const int maxn'
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:5:11: note: 'const int maxn' previously defined here
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:44:18: error: redefinition of 'int dp [1005][1005]'
 int dp[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:6:5: note: 'int dp [1005][1005]' previously declared here
 int dp[maxn][maxn];
     ^
0_0_19993089_9127.cpp:45:5: error: redefinition of 'int n'
 int n,ans;
     ^
0_0_19993089_9127.cpp:7:5: note: 'int n' previously declared here
 int n,ans;
     ^
0_0_19993089_9127.cpp:45:7: error: redefinition of 'int ans'
 int n,ans;
       ^
0_0_19993089_9127.cpp:7:7: note: 'int ans' previously declared here
 int n,ans;
       ^
0_0_19993089_9127.cpp:46:18: error: redefinition of 'char a [1005][1005]'
 char a[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:8:6: note: 'char a [1005][1005]' previously declared here
 char a[maxn][maxn];
      ^
0_0_19993089_9127.cpp: In function 'bool ok(int, int)':
0_0_19993089_9127.cpp:47:6: error: redefinition of 'bool ok(int, int)'
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp:9:6: note: 'bool ok(int, int)' previously defined here
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp: In function 'int main()':
0_0_19993089_9127.cpp:51:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_19993089_9127.cpp:13:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_19993089_9127.cpp: At global scope:
0_0_19993089_9127.cpp:81:11: error: redefinition of 'const int maxn'
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:5:11: note: 'const int maxn' previously defined here
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:82:18: error: redefinition of 'int dp [1005][1005]'
 int dp[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:6:5: note: 'int dp [1005][1005]' previously declared here
 int dp[maxn][maxn];
     ^
0_0_19993089_9127.cpp:83:5: error: redefinition of 'int n'
 int n,ans;
     ^
0_0_19993089_9127.cpp:7:5: note: 'int n' previously declared here
 int n,ans;
     ^
0_0_19993089_9127.cpp:83:7: error: redefinition of 'int ans'
 int n,ans;
       ^
0_0_19993089_9127.cpp:7:7: note: 'int ans' previously declared here
 int n,ans;
       ^
0_0_19993089_9127.cpp:84:18: error: redefinition of 'char a [1005][1005]'
 char a[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:8:6: note: 'char a [1005][1005]' previously declared here
 char a[maxn][maxn];
      ^
0_0_19993089_9127.cpp: In function 'bool ok(int, int)':
0_0_19993089_9127.cpp:85:6: error: redefinition of 'bool ok(int, int)'
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp:9:6: note: 'bool ok(int, int)' previously defined here
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp: In function 'int main()':
0_0_19993089_9127.cpp:89:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_19993089_9127.cpp:13:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_19993089_9127.cpp: At global scope:
0_0_19993089_9127.cpp:119:11: error: redefinition of 'const int maxn'
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:5:11: note: 'const int maxn' previously defined here
 const int maxn=1000+5;
           ^
0_0_19993089_9127.cpp:120:18: error: redefinition of 'int dp [1005][1005]'
 int dp[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:6:5: note: 'int dp [1005][1005]' previously declared here
 int dp[maxn][maxn];
     ^
0_0_19993089_9127.cpp:121:5: error: redefinition of 'int n'
 int n,ans;
     ^
0_0_19993089_9127.cpp:7:5: note: 'int n' previously declared here
 int n,ans;
     ^
0_0_19993089_9127.cpp:121:7: error: redefinition of 'int ans'
 int n,ans;
       ^
0_0_19993089_9127.cpp:7:7: note: 'int ans' previously declared here
 int n,ans;
       ^
0_0_19993089_9127.cpp:122:18: error: redefinition of 'char a [1005][1005]'
 char a[maxn][maxn];
                  ^
0_0_19993089_9127.cpp:8:6: note: 'char a [1005][1005]' previously declared here
 char a[maxn][maxn];
      ^
0_0_19993089_9127.cpp: In function 'bool ok(int, int)':
0_0_19993089_9127.cpp:123:6: error: redefinition of 'bool ok(int, int)'
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp:9:6: note: 'bool ok(int, int)' previously defined here
 bool ok(int x,int y)
      ^
0_0_19993089_9127.cpp: In function 'int main()':
0_0_19993089_9127.cpp:127:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_19993089_9127.cpp:13: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-09-30 10:36:09, Gzip enabled