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_22157279_32382.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <cstdio>
         ^
0_0_22157279_32382.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>
         ^
0_0_22157279_32382.cpp:8:8: error: macro names must be identifiers
 #define MAXSIZE 15
        ^
0_0_22157279_32382.cpp:3:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_22157279_32382.cpp:3:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_22157279_32382.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_22157279_32382.cpp:3:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_22157279_32382.cpp:4:7: error: expected identifier before '&' token
 struct Crane
       ^
0_0_22157279_32382.cpp:4:12: error: invalid type in declaration before ';' token
 struct Crane
            ^
0_0_22157279_32382.cpp:4:12: error: 'nbsp' declared as reference but not initialized
0_0_22157279_32382.cpp:4:13: error: 'Crane' does not name a type
 struct Crane
             ^
0_0_22157279_32382.cpp:9:1: error: 'Crane' does not name a type
 Crane cs[MAXSIZE];
 ^
0_0_22157279_32382.cpp:9:12: error: 'cs' does not name a type
 Crane cs[MAXSIZE];
            ^
0_0_22157279_32382.cpp:10:5: error: redefinition of 'int& nbsp'
 int table[MAXSIZE];
     ^
0_0_22157279_32382.cpp:4:8: note: 'int& nbsp' previously declared here
 struct Crane
        ^
0_0_22157279_32382.cpp:10:10: error: 'table' does not name a type
 int table[MAXSIZE];
          ^
0_0_22157279_32382.cpp:11:5: error: redefinition of 'int& nbsp'
 int binary[15] = {1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384};
     ^
0_0_22157279_32382.cpp:4:8: note: 'int& nbsp' previously declared here
 struct Crane
        ^
0_0_22157279_32382.cpp:11:10: error: 'binary' does not name a type
 int binary[15] = {1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384};
          ^
0_0_22157279_32382.cpp:11:26: error: expected unqualified-id before '=' token
 int binary[15] = {1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384};
                          ^
0_0_22157279_32382.cpp:11:33: error: expected unqualified-id before '{' token
 int binary[15] = {1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384};
                                 ^
0_0_22157279_32382.cpp:12:6: error: conflicting declaration 'bool& nbsp'
 bool bVisited[32768];
      ^
0_0_22157279_32382.cpp:4:8: note: previous declaration as 'int& nbsp'
 struct Crane
        ^
0_0_22157279_32382.cpp:12:11: error: 'bVisited' does not name a type
 bool bVisited[32768];
           ^
0_0_22157279_32382.cpp:13:5: error: redefinition of 'int& nbsp'
 int num;
     ^
0_0_22157279_32382.cpp:4:8: note: 'int& nbsp' previously declared here
 struct Crane
        ^
0_0_22157279_32382.cpp:13:10: error: 'num' does not name a type
 int num;
          ^
0_0_22157279_32382.cpp:15:5: error: redefinition of 'int& nbsp'
 int DFS(int path)
     ^
0_0_22157279_32382.cpp:4:8: note: 'int& nbsp' previously declared here
 struct Crane
        ^
0_0_22157279_32382.cpp:15:22: error: expected ')' before ';' token
 int DFS(int path)
                      ^
0_0_22157279_32382.cpp:15:22: error: expected constructor, destructor, or type conversion before ';' token
0_0_22157279_32382.cpp:15:23: error: 'path' does not name a type
 int DFS(int path)
                       ^
0_0_22157279_32382.cpp:30:5: error: redefinition of 'int& nbsp'
 int main()
     ^
0_0_22157279_32382.cpp:4:8: note: 'int& nbsp' previously declared here
 struct Crane
        ^
0_0_22157279_32382.cpp: In function 'int main()':
0_0_22157279_32382.cpp:32:29: error: 'nbsp' declared as reference but not initialized
     int test,i,j,k;
                             ^
0_0_22157279_32382.cpp:32:34: error: 'test' was not declared in this scope
     int test,i,j,k;
                                  ^
0_0_22157279_32382.cpp:32:39: error: 'i' was not declared in this scope
     int test,i,j,k;
                                       ^
0_0_22157279_32382.cpp:32:41: error: 'j' was not declared in this scope
     int test,i,j,k;
                                         ^
0_0_22157279_32382.cpp:32:43: error: 'k' was not declared in this scope
     int test,i,j,k;
                                           ^
0_0_22157279_32382.cpp:33:47: error: 'scanf' was not declared in this scope
     while(scanf("%d",&test)==1)
                                               ^
0_0_22157279_32382.cpp:35:72: error: expected primary-expression before '=' token
          for( k =0; k<test; k++)
                                                                        ^
0_0_22157279_32382.cpp:35:74: error: expected ')' before ';' token
          for( k =0; k<test; k++)
                                                                          ^
0_0_22157279_32382.cpp:37:67: error: 'num' was not declared in this scope
          scanf("%d",&num);
                                                                   ^
0_0_22157279_32382.cpp:37:70: error: 'scanf' was not declared in this scope
          scanf("%d",&num);
                                                                      ^
0_0_22157279_32382.cpp:38:66: error: expected primary-expression before '=' token
          for(i = 0; i<num; i++)
                                                                  ^
0_0_22157279_32382.cpp:38:74: error: expected ')' before ';' token
          for(i = 0; i<num; i++)
                                                                          ^
0_0_22157279_32382.cpp:40:119: error: 'cs' was not declared in this scope
                scanf("%d %d %d",&cs[i].x,&cs[i].y,&cs[i].r);
                                                                                                                       ^
0_0_22157279_32382.cpp:42:66: error: expected primary-expression before '=' token
          for(i = 0; i<num; i++)
                                                                  ^
0_0_22157279_32382.cpp:42:74: error: expected ')' before ';' token
          for(i = 0; i<num; i++)
                                                                          ^
0_0_22157279_32382.cpp:44:91: error: 'table' was not declared in this scope
                table[i] = 0;
                                                                                           ^
0_0_22157279_32382.cpp:44:105: error: expected primary-expression before '=' token
                table[i] = 0;
                                                                                                         ^
0_0_22157279_32382.cpp:45:102: error: expected primary-expression before '=' token
                for(j = 0;j<num; j++)
                                                                                                      ^
0_0_22157279_32382.cpp:45:110: error: expected ')' before ';' token
                for(j = 0;j<num; j++)
                                                                                                              ^
0_0_22157279_32382.cpp:47:132: error: 'cs' was not declared in this scope
                      if(((cs[i].x-cs[j].x)*(cs[i].x-cs[j].x)+(cs[i].y-cs[j].y)
                                                                                                                                    ^
0_0_22157279_32382.cpp:48:6: error: expected ')' before ';' token
                      *(cs[i].y-cs[j].y)) <= (cs[i].r+cs[j].r)*(cs[i].r+cs[j].r))
      ^
0_0_22157279_32382.cpp:48:6: error: expected ')' before ';' token
0_0_22157279_32382.cpp:48:129: error: 'cs' was not declared in this scope
                      *(cs[i].y-cs[j].y)) <= (cs[i].r+cs[j].r)*(cs[i].r+cs[j].r))
                                                                                                                                 ^
0_0_22157279_32382.cpp:48:152: error: expecte


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-06-17 09:48:18, Gzip enabled