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_33524297_22307.cpp: In function 'void Graham(node*, ll, ll&)':
0_0_33524297_22307.cpp:57:35: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         while(top>1&&Cross(ans[top]-ans[top-1],p[i]-ans[top])>=0)top--;
                                   ^
0_0_33524297_22307.cpp:57:46: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         while(top>1&&Cross(ans[top]-ans[top-1],p[i]-ans[top])>=0)top--;
                                              ^
0_0_33524297_22307.cpp:57:60: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         while(top>1&&Cross(ans[top]-ans[top-1],p[i]-ans[top])>=0)top--;
                                                            ^
0_0_33524297_22307.cpp:58:18: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         ans[++top]=p[i];
                  ^
0_0_33524297_22307.cpp:59:32: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                ^
0_0_33524297_22307.cpp:59:43: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                           ^
0_0_33524297_22307.cpp:59:54: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                                      ^
0_0_33524297_22307.cpp:59:65: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                                                 ^
0_0_33524297_22307.cpp:59:80: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                                                                ^
0_0_33524297_22307.cpp:59:89: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
         if(top>2&&Cross(ans[top]-ans[top-1],ans[top-1]-ans[top-2])==0)ans[top-1]=ans[top],--top;
                                                                                         ^
0_0_33524297_22307.cpp: In function 'int main()':
0_0_33524297_22307.cpp:73:17: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             e[ct].y=read();
                 ^
0_0_33524297_22307.cpp:74:17: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             e[ct].x=read();
                 ^
0_0_33524297_22307.cpp:75:26: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             pre[i].x=e[ct].x,pre[i].y=e[ct].y;
                          ^
0_0_33524297_22307.cpp:75:43: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             pre[i].x=e[ct].x,pre[i].y=e[ct].y;
                                           ^
0_0_33524297_22307.cpp:76:26: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             if(++mp[{e[ct].x,e[ct].y}]>1) ct--;
                          ^
0_0_33524297_22307.cpp:76:34: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             if(++mp[{e[ct].x,e[ct].y}]>1) ct--;
                                  ^
0_0_33524297_22307.cpp:76:20: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>' and '<brace-enclosed initializer list>')
             if(++mp[{e[ct].x,e[ct].y}]>1) ct--;
                    ^
0_0_33524297_22307.cpp:76:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
                 from 0_0_33524297_22307.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:491:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<int, int>; _Tp = int; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<int, int>]
       operator[](const key_type& __k)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:491:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::pair<int, int>; _Tp = int; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<int, int>]
       operator[](key_type&& __k)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:511:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::map<std::pair<int, int>, int>::key_type&& {aka std::pair<int, int>&&}'
0_0_33524297_22307.cpp:82:20: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             if(e[ct].x==e[i].x) continue;
                    ^
0_0_33524297_22307.cpp:83:19: error: invalid types 'node [50005][ll {aka long double}]' for array subscript
             e[++ct]=e[i];
                   ^


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 03:20:32, Gzip enabled