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_13614901_20830.cpp:58:9: error: conflicting declaration 'int a [25]'
 int a[25];
         ^
0_0_13614901_20830.cpp:7:20: note: previous declaration as 'int a [210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
                    ^
0_0_13614901_20830.cpp:60:17: error: conflicting declaration 'int dp [25][4][25]'
 int dp[25][4][25];
                 ^
0_0_13614901_20830.cpp:7:5: note: previous declaration as 'int dp [210][210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
     ^
0_0_13614901_20830.cpp: In function 'int main()':
0_0_13614901_20830.cpp:61:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_13614901_20830.cpp:8:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_13614901_20830.cpp:73:41: error: invalid types 'int[int]' for array subscript
         for(int i=1;i<=n;i++) dp[0][0][i]=sum;
                                         ^
0_0_13614901_20830.cpp:78:35: error: invalid types 'int[int]' for array subscript
                         dp[i][j][k]=dp[i-1][t][k+j]-f[k][j];
                                   ^
0_0_13614901_20830.cpp:78:51: error: invalid types 'int[int]' for array subscript
                         dp[i][j][k]=dp[i-1][t][k+j]-f[k][j];
                                                   ^
0_0_13614901_20830.cpp: At global scope:
0_0_13614901_20830.cpp:97:8: error: conflicting declaration 'node a [1010]'
 }a[MAXN];
        ^
0_0_13614901_20830.cpp:7:20: note: previous declaration as 'int a [210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
                    ^
0_0_13614901_20830.cpp: In function 'int main()':
0_0_13614901_20830.cpp:102:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_13614901_20830.cpp:8:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_13614901_20830.cpp:109:32: error: request for member 'x' in 'a[i]', which is of non-class type 'int'
             scanf("%d%d",&a[i].x,&a[i].y);
                                ^
0_0_13614901_20830.cpp:109:40: error: request for member 'y' in 'a[i]', which is of non-class type 'int'
             scanf("%d%d",&a[i].x,&a[i].y);
                                        ^
0_0_13614901_20830.cpp:110:18: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
             a[i].z=0;
                  ^
0_0_13614901_20830.cpp:114:21: error: request for member 'y' in 'a[i]', which is of non-class type 'int'
             if(a[i].y==-m||a[i].y==m&&a[i].z==0){
                     ^
0_0_13614901_20830.cpp:114:33: error: request for member 'y' in 'a[i]', which is of non-class type 'int'
             if(a[i].y==-m||a[i].y==m&&a[i].z==0){
                                 ^
0_0_13614901_20830.cpp:114:44: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
             if(a[i].y==-m||a[i].y==m&&a[i].z==0){
                                            ^
0_0_13614901_20830.cpp:115:22: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
                 a[i].z==1;
                      ^
0_0_13614901_20830.cpp:117:33: error: request for member 'x' in 'a[j]', which is of non-class type 'int'
                     if(dis(a[j].x,a[j].y,a[i].x)<=m)
                                 ^
0_0_13614901_20830.cpp:117:40: error: request for member 'y' in 'a[j]', which is of non-class type 'int'
                     if(dis(a[j].x,a[j].y,a[i].x)<=m)
                                        ^
0_0_13614901_20830.cpp:117:47: error: request for member 'x' in 'a[i]', which is of non-class type 'int'
                     if(dis(a[j].x,a[j].y,a[i].x)<=m)
                                               ^
0_0_13614901_20830.cpp:118:30: error: request for member 'z' in 'a[j]', which is of non-class type 'int'
                         a[j].z=1;
                              ^
0_0_13614901_20830.cpp:125:21: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
             if(a[i].z==0){
                     ^
0_0_13614901_20830.cpp:126:39: error: request for member 'x' in 'a[i]', which is of non-class type 'int'
                 double x=(double)a[i].x-(double)sqrt(m*m-a[i].y*a[i].y);
                                       ^
0_0_13614901_20830.cpp:126:63: error: request for member 'y' in 'a[i]', which is of non-class type 'int'
                 double x=(double)a[i].x-(double)sqrt(m*m-a[i].y*a[i].y);
                                                               ^
0_0_13614901_20830.cpp:126:70: error: request for member 'y' in 'a[i]', which is of non-class type 'int'
                 double x=(double)a[i].x-(double)sqrt(m*m-a[i].y*a[i].y);
                                                                      ^
0_0_13614901_20830.cpp:128:32: error: request for member 'x' in 'a[j]', which is of non-class type 'int'
                 while(dis(a[j].x,a[j].y,x)<=m){
                                ^
0_0_13614901_20830.cpp:128:39: error: request for member 'y' in 'a[j]', which is of non-class type 'int'
                 while(dis(a[j].x,a[j].y,x)<=m){
                                       ^
0_0_13614901_20830.cpp:129:26: error: request for member 'z' in 'a[j]', which is of non-class type 'int'
                     a[j].z=1;
                          ^
0_0_13614901_20830.cpp:132:22: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
                 a[i].z==1;
                      ^
0_0_13614901_20830.cpp:139:21: error: request for member 'z' in 'a[i]', which is of non-class type 'int'
             if(a[i].z==0) {
                     ^
0_0_13614901_20830.cpp: At global scope:
0_0_13614901_20830.cpp:154:11: error: conflicting declaration 'int a [7][7]'
 int a[7][7];
           ^
0_0_13614901_20830.cpp:7:20: note: previous declaration as 'int a [210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
                    ^
0_0_13614901_20830.cpp: In function 'int judge()':
0_0_13614901_20830.cpp:159:22: error: invalid types 'int[int]' for array subscript
             if(a[i][j]!=a[0][0])
                      ^
0_0_13614901_20830.cpp:159:31: error: invalid types 'int[int]' for array subscript
             if(a[i][j]!=a[0][0])
                               ^
0_0_13614901_20830.cpp: In function 'void turn(int, int)':
0_0_13614901_20830.cpp:167:11: error: invalid types 'int[int]' for array subscript
     a[i][j]^=1;
           ^
0_0_13614901_20830.cpp:168:21: error: invalid types 'int[int]' for array subscript
     if(i>0) a[i-1][j]^=1;
                     ^
0_0_13614901_20830.cpp:169:21: error: invalid types 'int[int]' for array subscript
     if(i<3) a[i+1][j]^=1;
                     ^
0_0_13614901_20830.cpp:170:21: error: invalid types 'int[int]' for array subscript
     if(j>0) a[i][j-1]^=1;
                     ^
0_0_13614901_20830.cpp:171:21: error: invalid types 'int[int]' for array subscript
     if(j<3) a[i][j+1]^=1;
                     ^
0_0_13614901_20830.cpp: In function 'int main()':
0_0_13614901_20830.cpp:189:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_13614901_20830.cpp:8:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_13614901_20830.cpp:194:33: error: invalid types 'int[int]' for array subscript
             if(b[j]=='b') a[i][j]=1;
                                 ^
0_0_13614901_20830.cpp:195:24: error: invalid types 'int[int]' for array subscript
             else a[i][j]=0;
                        ^
0_0_13614901_20830.cpp: At global scope:
0_0_13614901_20830.cpp:216:11: error: redefinition of 'const int MAXN'
 const int MAXN = 5050;
           ^
0_0_13614901_20830.cpp:94:11: note: 'const int MAXN' previously defined here
 const int MAXN=1010;
           ^
0_0_13614901_20830.cpp:217:11: error: conflicting declaration 'int a [1010]'
 int a[MAXN];
           ^
0_0_13614901_20830.cpp:7:20: note: previous declaration as 'int a [210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
                    ^
0_0_13614901_20830.cpp: In function 'int main()':
0_0_13614901_20830.cpp:219:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_13614901_20830.cpp:8:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_13614901_20830.cpp: At global scope:
0_0_13614901_20830.cpp:272:11: error: conflicting declaration 'int a [5050]'
 int a[5050],f[5050],d[65];
           ^
0_0_13614901_20830.cpp:7:20: note: previous declaration as 'int a [210]'
 int dp[maxn][maxn],a[maxn],res[maxn];
                    ^
0_0_13614901_20830.cpp:272:19: error: conflicting declaration 'int f [5050]'
 int a[5050],f[5050],d[65];
                   ^
0_0_13614901_20830.cpp:59:5: note: previous declaration as 'int f [25][4]'
 int f[25][4];
     ^
0_0_13614901_20830.cpp:272:25: error: conflicting declaration 'int d [65]'
 int a[5050],f[5050],d[65];
                         ^
0_0_13614901_20830.cpp:218:5: note: previous declaration as 'int d [202000]'
 int d[MAXN*2*100]={1,3,5,7,9};
     ^
0_0_13614901_20830.cpp: In function 'int main()':
0_0_13614901_20830.cpp:273:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_13614901_20830.cpp:8:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_13614901_20830.cpp:295:29: error: incompatible types in assignment of 'int' to 'int [4]'
                         f[k]=j;
                             ^


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 18:33:41, Gzip enabled