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_33352268_21749.cpp:8:18: error: expected primary-expression before '<<' token
 const int inf =  << ;
                  ^
0_0_33352268_21749.cpp:8:21: error: expected primary-expression before ';' token
 const int inf =  << ;
                     ^
0_0_33352268_21749.cpp:9:18: error: expected primary-expression before ';' token
 const int maxn = ;
                  ^
0_0_33352268_21749.cpp:17:12: error: size of array 'dwarf' is not an integral constant-expression
 }dwarf[maxn];
            ^
0_0_33352268_21749.cpp:18:13: error: size of array 'sum' is not an integral constant-expression
 int sum[maxn],dp[maxn][maxn];
             ^
0_0_33352268_21749.cpp:18:28: error: size of array 'dp' is not an integral constant-expression
 int sum[maxn],dp[maxn][maxn];
                            ^
0_0_33352268_21749.cpp:18:28: error: size of array 'dp' is not an integral constant-expression
0_0_33352268_21749.cpp: In function 'void read()':
0_0_33352268_21749.cpp:23:15: error: expected primary-expression before ',' token
     memset(dp,,sizeof(dp));
               ^
0_0_33352268_21749.cpp:24:15: error: expected primary-expression before ';' token
     for(int i=;i<=n;i++)
               ^
0_0_33352268_21749.cpp:29:19: error: expected primary-expression before ',' token
     sort(dwarf +  , dwarf + n + );
                   ^
0_0_33352268_21749.cpp:29:33: error: expected primary-expression before ')' token
     sort(dwarf +  , dwarf + n + );
                                 ^
0_0_33352268_21749.cpp:30:9: error: expected primary-expression before ']' token
     sum[] = ;
         ^
0_0_33352268_21749.cpp:30:13: error: expected primary-expression before ';' token
     sum[] = ;
             ^
0_0_33352268_21749.cpp:31:15: error: expected primary-expression before ';' token
     for(int i=;i<=n;i++)
               ^
0_0_33352268_21749.cpp:33:24: error: expected primary-expression before ']' token
         sum[i] = sum[i-] + dwarf[i].a;
                        ^
0_0_33352268_21749.cpp:35:15: error: expected primary-expression before ';' token
     for(int i=;i<=n;i++)
               ^
0_0_33352268_21749.cpp:37:21: error: expected primary-expression before ';' token
         for(int j=i+;j<=n;j++)
                     ^
0_0_33352268_21749.cpp: In function 'void solve()':
0_0_33352268_21749.cpp:47:15: error: expected primary-expression before ';' token
     for(int i=;i<=n;i++)
               ^
0_0_33352268_21749.cpp:49:19: error: expected primary-expression before ';' token
         for(int j=;j<=i;j++)
                   ^
0_0_33352268_21749.cpp:51:33: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                 ^
0_0_33352268_21749.cpp:5:22: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                      ^
0_0_33352268_21749.cpp:51:62: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                              ^
0_0_33352268_21749.cpp:5:28: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                            ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:66: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                                  ^
0_0_33352268_21749.cpp:5:28: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                            ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:62: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                              ^
0_0_33352268_21749.cpp:5:28: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                            ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:66: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                                  ^
0_0_33352268_21749.cpp:5:28: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                            ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:33: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                 ^
0_0_33352268_21749.cpp:5:34: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                                  ^
0_0_33352268_21749.cpp:51:62: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                              ^
0_0_33352268_21749.cpp:5:40: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                                        ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:66: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                                  ^
0_0_33352268_21749.cpp:5:40: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                                        ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:62: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                              ^
0_0_33352268_21749.cpp:5:40: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                                        ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:51:66: error: expected primary-expression before ']' token
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                                  ^
0_0_33352268_21749.cpp:5:40: note: in definition of macro 'MIN'
 #define MIN(a , b) ((a) < (b) ? (a) : (b))
                                        ^
0_0_33352268_21749.cpp:51:53: note: in expansion of macro 'MAX'
             dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
                                                     ^
0_0_33352268_21749.cpp:54:20: error: expected primary-expression before ';' token
     for(int i=n;i>=;i--)
                    ^
0_0_33352268_21749.cpp:56:24: error: expected primary-expression before ')' token
         if(dp[n][i] <= )
                        ^
0_0_33352268_21749.cpp: In function 'int main()':
0_0_33352268_21749.cpp:72:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
     return ;
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 03:13:48, Gzip enabled