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_38433341_3615.cpp: In function 'void sol()':
0_0_38433341_3615.cpp:61:15: error: expected unqualified-id before '[' token
     for(auto &[p,a]:q)
               ^
0_0_38433341_3615.cpp:61:15: error: expected ';' before '[' token
0_0_38433341_3615.cpp:61:16: error: 'p' was not declared in this scope
     for(auto &[p,a]:q)
                ^
0_0_38433341_3615.cpp:61:18: error: 'a' was not declared in this scope
     for(auto &[p,a]:q)
                  ^
0_0_38433341_3615.cpp: In lambda function:
0_0_38433341_3615.cpp:61:20: error: expected '{' before ':' token
     for(auto &[p,a]:q)
                    ^
0_0_38433341_3615.cpp: In function 'void sol()':
0_0_38433341_3615.cpp:61:20: error: expected ';' before ':' token
0_0_38433341_3615.cpp:61:20: error: expected primary-expression before ':' token
0_0_38433341_3615.cpp:61:20: error: expected ')' before ':' token
0_0_38433341_3615.cpp:61:20: error: expected primary-expression before ':' token
0_0_38433341_3615.cpp: In lambda function:
0_0_38433341_3615.cpp:76:14: error: expected unqualified-id before '[' token
         auto [x1,y1]=a;
              ^
0_0_38433341_3615.cpp:77:14: error: expected unqualified-id before '[' token
         auto [x2,y2]=b;
              ^
0_0_38433341_3615.cpp:78:20: error: 'x1' was not declared in this scope
         return 1ll*x1*y2 >= 1ll*x2*y1;
                    ^
0_0_38433341_3615.cpp:78:23: error: 'y2' was not declared in this scope
         return 1ll*x1*y2 >= 1ll*x2*y1;
                       ^
0_0_38433341_3615.cpp:78:33: error: 'x2' was not declared in this scope
         return 1ll*x1*y2 >= 1ll*x2*y1;
                                 ^
0_0_38433341_3615.cpp:78:36: error: 'y1' was not declared in this scope
         return 1ll*x1*y2 >= 1ll*x2*y1;
                                    ^
0_0_38433341_3615.cpp: In function 'void sol()':
0_0_38433341_3615.cpp:81:15: error: expected unqualified-id before '[' token
     for(auto &[p,a]:q)
               ^
0_0_38433341_3615.cpp:81:15: error: expected ';' before '[' token
0_0_38433341_3615.cpp:81:16: error: 'p' was not declared in this scope
     for(auto &[p,a]:q)
                ^
0_0_38433341_3615.cpp:81:18: error: 'a' was not declared in this scope
     for(auto &[p,a]:q)
                  ^
0_0_38433341_3615.cpp: In lambda function:
0_0_38433341_3615.cpp:81:20: error: expected '{' before ':' token
     for(auto &[p,a]:q)
                    ^
0_0_38433341_3615.cpp: In function 'void sol()':
0_0_38433341_3615.cpp:81:20: error: expected ';' before ':' token
0_0_38433341_3615.cpp:81:20: error: expected primary-expression before ':' token
0_0_38433341_3615.cpp:81:20: error: expected ')' before ':' token
0_0_38433341_3615.cpp:81:20: error: expected primary-expression before ':' token
0_0_38433341_3615.cpp:111:14: error: expected unqualified-id before '[' token
         auto [p,a]=st.top();
              ^
0_0_38433341_3615.cpp:112:18: error: 'p' was not declared in this scope
         re +=mp[{p,a}]==1;
                  ^
0_0_38433341_3615.cpp:112:20: error: 'a' was not declared in this scope
         re +=mp[{p,a}]==1;
                    ^
0_0_38433341_3615.cpp:112:16: error: no match for 'operator[]' (operand types are 'std::map<std::array<int, 2ull>, int>' and '<brace-enclosed initializer list>')
         re +=mp[{p,a}]==1;
                ^
0_0_38433341_3615.cpp:112:16: 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_38433341_3615.cpp:4:
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::array<int, 2ull>; _Tp = int; _Compare = std::less<std::array<int, 2ull> >; _Alloc = std::allocator<std::pair<const std::array<int, 2ull>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::array<int, 2ull>]
       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::array<int, 2ull>&}'
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::array<int, 2ull>; _Tp = int; _Compare = std::less<std::array<int, 2ull> >; _Alloc = std::allocator<std::pair<const std::array<int, 2ull>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::array<int, 2ull>]
       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::array<int, 2ull>, int>::key_type&& {aka std::array<int, 2ull>&&}'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_38433341_3615.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Compare = sol()::<lambda(auto:1&, auto:2&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<sol()::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<sol()::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<sol()::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::array<int, 2ull>*, std::vector<std::array<int, 2ull> > >; _Compare = sol()::<lambda(auto:1&, auto:2&)>]'
0_0_38433341_3615.cpp:68:6:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: invalid use of 'auto'
         { return bool(_M_comp(*__it1, *__it2)); }
                                              ^


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-06-17 15:12:42, Gzip enabled