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_21021561_15511.cpp:5:8: error: macro names must be identifiers
 #define max(a,b) ((a)>(b)?(a):(b))  
        ^
0_0_21021561_15511.cpp:4:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_21021561_15511.cpp:4:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_21021561_15511.cpp:4:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_21021561_15511.cpp:4:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_21021561_15511.cpp:4:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_21021561_15511.cpp:4:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_21021561_15511.cpp:6:5: error: 'nbsp' declared as reference but not initialized
 int dp[1005][105][2];//dp[i][j] 第i秒在第j点时的最大值  
     ^
0_0_21021561_15511.cpp:6:10: error: 'dp' does not name a type
 int dp[1005][105][2];//dp[i][j] 第i秒在第j点时的最大值  
          ^
0_0_21021561_15511.cpp:7:5: error: redefinition of 'int& nbsp'
 int times[105][1005];//times[i][j] i点在j秒有times[i][j]机器人出现  
     ^
0_0_21021561_15511.cpp:6:5: note: 'int& nbsp' previously declared here
 int dp[1005][105][2];//dp[i][j] 第i秒在第j点时的最大值  
     ^
0_0_21021561_15511.cpp:7:10: error: 'times' does not name a type
 int times[105][1005];//times[i][j] i点在j秒有times[i][j]机器人出现  
          ^
0_0_21021561_15511.cpp:8:5: error: redefinition of 'int& nbsp'
 int alltime[105][1005];//alltime[i][j]预处理i点在j秒本身与相邻点所有的机器人  
     ^
0_0_21021561_15511.cpp:6:5: note: 'int& nbsp' previously declared here
 int dp[1005][105][2];//dp[i][j] 第i秒在第j点时的最大值  
     ^
0_0_21021561_15511.cpp:8:10: error: 'alltime' does not name a type
 int alltime[105][1005];//alltime[i][j]预处理i点在j秒本身与相邻点所有的机器人  
          ^
0_0_21021561_15511.cpp:9:7: error: expected identifier before '&' token
 struct node  
       ^
0_0_21021561_15511.cpp:9:12: error: invalid type in declaration before ';' token
 struct node  
            ^
0_0_21021561_15511.cpp:9:12: error: redefinition of 'int& nbsp'
0_0_21021561_15511.cpp:6:5: note: 'int& nbsp' previously declared here
 int dp[1005][105][2];//dp[i][j] 第i秒在第j点时的最大值  
     ^
0_0_21021561_15511.cpp:9:13: error: 'node' does not name a type
 struct node  
             ^
0_0_21021561_15511.cpp:9:28: error: expected constructor, destructor, or type conversion before ';' token
 struct node  
                            ^
0_0_21021561_15511.cpp:10:1: error: expected unqualified-id before '{' token
 {  
 ^


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-17 00:49:47, Gzip enabled