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_37512057_12169.cpp: In function 'll Perimeter()':
0_0_37512057_12169.cpp:131:7: error: 'array' was not declared in this scope
   vec<array<int, 4>> line(n << 1);
       ^
0_0_37512057_12169.cpp:131:19: error: template argument 1 is invalid
   vec<array<int, 4>> line(n << 1);
                   ^
0_0_37512057_12169.cpp:131:19: error: template argument 2 is invalid
0_0_37512057_12169.cpp:131:26: error: invalid type in declaration before '(' token
   vec<array<int, 4>> line(n << 1);
                          ^
0_0_37512057_12169.cpp:134:20: error: invalid types 'int[int]' for array subscript
     line[i << 1 | 0] = {x1[i], y1[i], y2[i],  1};
                    ^
0_0_37512057_12169.cpp:135:20: error: invalid types 'int[int]' for array subscript
     line[i << 1 | 1] = {x2[i], y1[i], y2[i], -1};
                    ^
0_0_37512057_12169.cpp:17:18: error: request for member 'begin' in 'line', which is of non-class type 'int'
 #define all(a) a.begin(), a.end()
                  ^
0_0_37512057_12169.cpp:140:8: note: in expansion of macro 'all'
   sort(all(line), [&](array<int, 4> a, array<int, 4> b) {
        ^
0_0_37512057_12169.cpp:17:29: error: request for member 'end' in 'line', which is of non-class type 'int'
 #define all(a) a.begin(), a.end()
                             ^
0_0_37512057_12169.cpp:140:8: note: in expansion of macro 'all'
   sort(all(line), [&](array<int, 4> a, array<int, 4> b) {
        ^
0_0_37512057_12169.cpp:140:23: error: 'array' is not a type
   sort(all(line), [&](array<int, 4> a, array<int, 4> b) {
                       ^
0_0_37512057_12169.cpp:140:28: error: expected ',' or '...' before '<' token
   sort(all(line), [&](array<int, 4> a, array<int, 4> b) {
                            ^
0_0_37512057_12169.cpp: In lambda function:
0_0_37512057_12169.cpp:141:13: error: 'a' was not declared in this scope
     return (a[0] == b[0]) ? (a[3] > b[3]) : (a[0] < b[0]);
             ^
0_0_37512057_12169.cpp:141:21: error: 'b' was not declared in this scope
     return (a[0] == b[0]) ? (a[3] > b[3]) : (a[0] < b[0]);
                     ^
0_0_37512057_12169.cpp: In function 'll Perimeter()':
0_0_37512057_12169.cpp:18:36: error: request for member 'size' in 'line', which is of non-class type 'int'
 #define SZ(x) static_cast<int>((x).size())
                                    ^
0_0_37512057_12169.cpp:149:23: note: in expansion of macro 'SZ'
   for (int i = 0; i < SZ(line); i++) {
                       ^
0_0_37512057_12169.cpp:153:40: error: invalid types 'int[int]' for array subscript
     int pl = lower_bound(all(Y), line[i][1]) - Y.begin();
                                        ^
0_0_37512057_12169.cpp:154:40: error: invalid types 'int[int]' for array subscript
     int pr = lower_bound(all(Y), line[i][2]) - Y.begin();
                                        ^
0_0_37512057_12169.cpp:155:29: error: invalid types 'int[int]' for array subscript
     tr.update(pl, pr, line[i][3]), pre = len;
                             ^


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-23 09:57:28, Gzip enabled