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_38723940_15723.cpp: In function 'void solve()':
0_0_38723940_15723.cpp:54:39: error: request for member 'empty' in 'Map[m].std::vector<int>::operator[](((std::vector<int>::size_type)n))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   54 |                         if(!Map[m][n].empty()){
      |                                       ^~~~~
0_0_38723940_15723.cpp:55:52: error: 'begin' was not declared in this scope
   55 |                                 for(auto k:Map[m][n]){
      |                                                    ^
0_0_38723940_15723.cpp:55:52: note: suggested alternatives:
In file included from .\stdc++.h:166:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1230:5: note:   'std::begin'
 1230 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:489:44: note:   'std::ranges::__cust::begin'
  489 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:48,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:576:3: note:   'std::filesystem::__cxx11::begin'
  576 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_types.h:71,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:969:10: note:   'std::ranges::__cust_access::begin'
  969 |     void begin(const auto&) = delete;
      |          ^~~~~
0_0_38723940_15723.cpp:55:52: error: 'end' was not declared in this scope
   55 |                                 for(auto k:Map[m][n]){
      |                                                    ^
0_0_38723940_15723.cpp:55:52: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1257:5: note:   'std::end'
 1257 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:490:42: note:   'std::ranges::__cust::end'
  490 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:581:3: note:   'std::filesystem::__cxx11::end'
  581 |   end(recursive_directory_iterator) noexcept
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:137:10: note:   'std::ranges::__cust_access::end'
  137 |     void end(const auto&) = delete;
      |          ^~~
0_0_38723940_15723.cpp:59:42: error: request for member 'empty' in 'Map[(m + 1)].std::vector<int>::operator[](((std::vector<int>::size_type)n))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   59 |                         }if(!Map[m+1][n].empty()){
      |                                          ^~~~~
0_0_38723940_15723.cpp:60:54: error: 'begin' was not declared in this scope
   60 |                                 for(auto k:Map[m+1][n]){
      |                                                      ^
0_0_38723940_15723.cpp:60:54: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1230:5: note:   'std::begin'
 1230 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:489:44: note:   'std::ranges::__cust::begin'
  489 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:576:3: note:   'std::filesystem::__cxx11::begin'
  576 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:969:10: note:   'std::ranges::__cust_access::begin'
  969 |     void begin(const auto&) = delete;
      |          ^~~~~
0_0_38723940_15723.cpp:60:54: error: 'end' was not declared in this scope
   60 |                                 for(auto k:Map[m+1][n]){
      |                                                      ^
0_0_38723940_15723.cpp:60:54: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1257:5: note:   'std::end'
 1257 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:490:42: note:   'std::ranges::__cust::end'
  490 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:581:3: note:   'std::filesystem::__cxx11::end'
  581 |   end(recursive_directory_iterator) noexcept
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:137:10: note:   'std::ranges::__cust_access::end'
  137 |     void end(const auto&) = delete;
      |          ^~~
0_0_38723940_15723.cpp:65:35: error: request for member 'push_back' in 'Map[m].std::vector<int>::operator[](((std::vector<int>::size_type)n))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   65 |                         Map[m][n].push_back(t);
      |                                   ^~~~~~~~~
0_0_38723940_15723.cpp:66:37: error: request for member 'push_back' in 'Map[(m + 1)].std::vector<int>::operator[](((std::vector<int>::size_type)n))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   66 |                         Map[m+1][n].push_back(t);
      |                                     ^~~~~~~~~
0_0_38723940_15723.cpp:71:39: error: request for member 'empty' in 'Map[m].std::vector<int>::operator[](((std::vector<int>::size_type)n))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   71 |                         if(!Map[m][n].empty()){
      |                                       ^~~~~
0_0_38723940_15723.cpp:72:52: error: 'begin' was not declared in this scope
   72 |                                 for(auto k:Map[m][n]){
      |                                                    ^
0_0_38723940_15723.cpp:72:52: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1230:5: note:   'std::begin'
 1230 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:489:44: note:   'std::ranges::__cust::begin'
  489 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:576:3: note:   'std::filesystem::__cxx11::begin'
  576 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:969:10: note:   'std::ranges::__cust_access::begin'
  969 |     void begin(const auto&) = delete;
      |          ^~~~~
0_0_38723940_15723.cpp:72:52: error: 'end' was not declared in this scope
   72 |                                 for(auto k:Map[m][n]){
      |                                                    ^
0_0_38723940_15723.cpp:72:52: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1257:5: note:   'std::end'
 1257 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:490:42: note:   'std::ranges::__cust::end'
  490 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:581:3: note:   'std::filesystem::__cxx11::end'
  581 |   end(recursive_directory_iterator) noexcept
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:137:10: note:   'std::ranges::__cust_access::end'
  137 |     void end(const auto&) = delete;
      |          ^~~
0_0_38723940_15723.cpp:76:42: error: request for member 'empty' in 'Map[m].std::vector<int>::operator[](((std::vector<int>::size_type)(n + 1)))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   76 |                         }if(!Map[m][n+1].empty()){
      |                                          ^~~~~
0_0_38723940_15723.cpp:77:54: error: 'begin' was not declared in this scope
   77 |                                 for(auto k:Map[m][n+1]){
      |                                                      ^
0_0_38723940_15723.cpp:77:54: note: 


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 01:43:58, Gzip enabled