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_20975413_24131.cpp:36:20: error: stray '#' in program
     return rect[j + 1].w - rect[i + 1].w;
                    ^
0_0_20975413_24131.cpp:36:40: error: stray '#' in program
     return rect[j + 1].w - rect[i + 1].w;
                                        ^
0_0_20975413_24131.cpp:41:32: error: stray '#' in program
     return rect[i].h * rect[j + 1].w + dp[j][k & 1];
                                ^
0_0_20975413_24131.cpp:41:43: error: stray '#' in program
     return rect[i].h * rect[j + 1].w + dp[j][k & 1];
                                           ^
0_0_20975413_24131.cpp:51:35: error: stray '#' in program
         for(int i = 1; i <= n; i ++)
                                   ^
0_0_20975413_24131.cpp:51:40: error: stray '#' in program
         for(int i = 1; i <= n; i ++)
                                        ^
0_0_20975413_24131.cpp:55:19: error: stray '#' in program
         sort(now + 1, now + n + 1);
                   ^
0_0_20975413_24131.cpp:55:32: error: stray '#' in program
         sort(now + 1, now + n + 1);
                                ^
0_0_20975413_24131.cpp:55:40: error: stray '#' in program
         sort(now + 1, now + n + 1);
                                        ^
0_0_20975413_24131.cpp:58:35: error: stray '#' in program
         for(int i = 2; i <= n; i ++)
                                   ^
0_0_20975413_24131.cpp:58:40: error: stray '#' in program
         for(int i = 2; i <= n; i ++)
                                        ^
0_0_20975413_24131.cpp:61:19: error: stray '#' in program
             rect[++ nn] = now[i];
                   ^
0_0_20975413_24131.cpp:61:24: error: stray '#' in program
             rect[++ nn] = now[i];
                        ^
0_0_20975413_24131.cpp:65:35: error: stray '#' in program
         for(int i = 1; i <= n; i ++) dp[i][0] = INF;
                                   ^
0_0_20975413_24131.cpp:65:40: error: stray '#' in program
         for(int i = 1; i <= n; i ++) dp[i][0] = INF;
                                        ^
0_0_20975413_24131.cpp:66:51: error: stray '#' in program
         for(int j = 0; j <= min(k - 1, n - 1); j ++)
                                                   ^
0_0_20975413_24131.cpp:66:56: error: stray '#' in program
         for(int j = 0; j <= min(k - 1, n - 1); j ++)
                                                        ^
0_0_20975413_24131.cpp:69:18: error: stray '#' in program
             d[r ++] = j;
                  ^
0_0_20975413_24131.cpp:69:23: error: stray '#' in program
             d[r ++] = j;
                       ^
0_0_20975413_24131.cpp:70:28: error: stray '#' in program
             for(int i = j + 1; i <= n; i ++)
                            ^
0_0_20975413_24131.cpp:70:47: error: stray '#' in program
             for(int i = j + 1; i <= n; i ++)
                                               ^
0_0_20975413_24131.cpp:70:52: error: stray '#' in program
             for(int i = j + 1; i <= n; i ++)
                                                    ^
0_0_20975413_24131.cpp:72:26: error: stray '#' in program
                 while(l + 1 < r && getUP(d[l + 1], d[l], j) < getDOWN(d[l + 1], d[l]) * rect[i].h)
                          ^
0_0_20975413_24131.cpp:72:51: error: stray '#' in program
                 while(l + 1 < r && getUP(d[l + 1], d[l], j) < getDOWN(d[l + 1], d[l]) * rect[i].h)
                                                   ^
0_0_20975413_24131.cpp:72:84: error: stray '#' in program
                 while(l + 1 < r && getUP(d[l + 1], d[l], j) < getDOWN(d[l + 1], d[l]) * rect[i].h)
                                                                                    ^
0_0_20975413_24131.cpp:74:24: error: stray '#' in program
                     l ++;
                        ^
0_0_20975413_24131.cpp:74:29: error: stray '#' in program
                     l ++;
                             ^
0_0_20975413_24131.cpp:76:27: error: stray '#' in program
                 dp[i][(j + 1) & 1] = getDP(i, d[l], j);
                           ^
0_0_20975413_24131.cpp:77:26: error: stray '#' in program
                 while(l + 1 < r && getUP(i, d[r - 1], j) * getDOWN(i, d[r - 2]) <= getDOWN(i, d[r - 1]) * getUP(i, d[r - 2], j))
                          ^
0_0_20975413_24131.cpp:81:22: error: stray '#' in program
                 d[r ++] = i;
                      ^
0_0_20975413_24131.cpp:81:27: error: stray '#' in program
                 d[r ++] = i;
                           ^
0_0_20975413_24131.cpp:83:26: error: stray '#' in program
             if(dp[n][(j + 1) & 1] >= ans) break;//ΣΕ»―£‘
                          ^
0_0_20975413_24131.cpp:84:38: error: stray '#' in program
             ans = min(ans, dp[n][(j + 1) & 1]);
                                      ^
0_0_20975413_24131.cpp: In function 'LL getDOWN(int, int)':
0_0_20975413_24131.cpp:36:23: error: expected ']' before ';' token
     return rect[j + 1].w - rect[i + 1].w;
                       ^
0_0_20975413_24131.cpp:36:23: error: cannot convert 'Rect' to 'LL {aka long long int}' in return
0_0_20975413_24131.cpp:36:26: error: expected ';' before ']' token
     return rect[j + 1].w - rect[i + 1].w;
                          ^
0_0_20975413_24131.cpp:36:46: error: expected ';' before ']' token
     return rect[j + 1].w - rect[i + 1].w;
                                              ^
0_0_20975413_24131.cpp: In function 'LL getDP(int, int, int)':
0_0_20975413_24131.cpp:41:35: error: expected ']' before ';' token
     return rect[i].h * rect[j + 1].w + dp[j][k & 1];
                                   ^
0_0_20975413_24131.cpp:41:22: error: no match for 'operator*' (operand types are 'LL {aka long long int}' and 'Rect')
     return rect[i].h * rect[j + 1].w + dp[j][k & 1];
                      ^
0_0_20975413_24131.cpp:41:38: error: expected ';' before ']' token
     return rect[i].h * rect[j + 1].w + dp[j][k & 1];
                                      ^
0_0_20975413_24131.cpp: In function 'int main()':
0_0_20975413_24131.cpp:51:38: error: expected ')' before ';' token
         for(int i = 1; i <= n; i ++)
                                      ^
0_0_20975413_24131.cpp:51:41: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; i ++)
                                         ^
0_0_20975413_24131.cpp:51:44: error: expected primary-expression before ')' token
         for(int i = 1; i <= n; i ++)
                                            ^
0_0_20975413_24131.cpp:55:20: error: invalid operands of types 'Rect [50500]' and 'int' to binary 'operator&'
         sort(now + 1, now + n + 1);
                    ^
0_0_20975413_24131.cpp:55:33: error: invalid operands of types 'Rect [50500]' and 'int' to binary 'operator&'
         sort(now + 1, now + n + 1);
                                 ^
0_0_20975413_24131.cpp:55:46: error: expected ';' before ')' token
         sort(now + 1, now + n + 1);
                                              ^
0_0_20975413_24131.cpp:58:38: error: expected ')' before ';' token
         for(int i = 2; i <= n; i ++)
                                      ^
0_0_20975413_24131.cpp:58:41: error: lvalue required as unary '&' operand
         for(int i = 2; i <= n; i ++)
                                         ^
0_0_20975413_24131.cpp:58:44: error: expected primary-expression before ')' token
         for(int i = 2; i <= n; i ++)
                                            ^
0_0_20975413_24131.cpp:65:38: error: expected ')' before ';' token
         for(int i = 1; i <= n; i ++) dp[i][0] = INF;
                                      ^
0_0_20975413_24131.cpp:65:41: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; i ++) dp[i][0] = INF;
                                         ^
0_0_20975413_24131.cpp:65:44: error: expected primary-expression before ')' token
         for(int i = 1; i <= n; i ++) dp[i][0] = INF;
                                            ^
0_0_20975413_24131.cpp:66:54: error: expected ')' before ';' token
         for(int j = 0; j <= min(k - 1, n - 1); j ++)
                                                      ^
0_0_20975413_24131.cpp:66:57: error: lvalue required as unary '&' operand
         for(int j = 0; j <= min(k - 1, n - 1); j ++)
                                                         ^
0_0_20975413_24131.cpp:66:60: error: expected primary-expression before ')' token
         for(int j = 0; j <= min(k - 1, n - 1); 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 08:58:55, Gzip enabled