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_38728389_13978.cpp:5:5: error: 'PII' was not declared in this scope
    5 | map<PII, int> mp;
      |     ^~~
0_0_38728389_13978.cpp:5:13: error: template argument 1 is invalid
    5 | map<PII, int> mp;
      |             ^
0_0_38728389_13978.cpp:5:13: error: template argument 3 is invalid
0_0_38728389_13978.cpp:5:13: error: template argument 4 is invalid
0_0_38728389_13978.cpp:6:1: error: 'PII' does not name a type
    6 | PII p[N];
      | ^~~
0_0_38728389_13978.cpp: In function 'void konbi()':
0_0_38728389_13978.cpp:8:22: error: request for member 'clear' in 'mp', which is of non-class type 'int'
    8 |         cin >> n; mp.clear();
      |                      ^~~~~
0_0_38728389_13978.cpp:10:24: error: 'p' was not declared in this scope
   10 |                 cin >> p[i].fi >> p[i].se;
      |                        ^
0_0_38728389_13978.cpp:13:14: error: 'p' was not declared in this scope
   13 |         sort(p + 1, p + 2 * n + 1);
      |              ^
0_0_38728389_13978.cpp:14:16: error: 'PII' was not declared in this scope
   14 |         vector<PII> ans;
      |                ^~~
0_0_38728389_13978.cpp:14:19: error: template argument 1 is invalid
   14 |         vector<PII> ans;
      |                   ^
0_0_38728389_13978.cpp:14:19: error: template argument 2 is invalid
0_0_38728389_13978.cpp:25:47: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
   25 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                               ^
0_0_38728389_13978.cpp:25:84: error: 'class std::vector<int>' has no member named 'pb'
   25 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                                                                    ^~
0_0_38728389_13978.cpp:26:55: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
   26 |                                 if (mp[p[j]] < 0 || mp[{p[j].fi + dx, p[j].se + dy}] < 0) {
      |                                                       ^
0_0_38728389_13978.cpp:29:51: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
   29 |                                                 mp[{p[k].fi + dx, p[k].se + dy}]++;
      |                                                   ^
0_0_38728389_13978.cpp:37:29: error: request for member 'pb' in 'ans', which is of non-class type 'int'
   37 |                         ans.pb({dx, dy});
      |                             ^~
0_0_38728389_13978.cpp:38:29: error: request for member 'pb' in 'ans', which is of non-class type 'int'
   38 |                         ans.pb({-dx, -dy});
      |                             ^~
0_0_38728389_13978.cpp:42:18: error: request for member 'begin' in 'ans', which is of non-class type 'int'
   42 |         sort(ans.begin(), ans.end());
      |                  ^~~~~
0_0_38728389_13978.cpp:42:31: error: request for member 'end' in 'ans', which is of non-class type 'int'
   42 |         sort(ans.begin(), ans.end());
      |                               ^~~
0_0_38728389_13978.cpp:43:13: error: request for member 'erase' in 'ans', which is of non-class type 'int'
   43 |         ans.erase(unique(ans.begin(), ans.end()), ans.end());
      |             ^~~~~
0_0_38728389_13978.cpp:43:30: error: request for member 'begin' in 'ans', which is of non-class type 'int'
   43 |         ans.erase(unique(ans.begin(), ans.end()), ans.end());
      |                              ^~~~~
0_0_38728389_13978.cpp:43:43: error: request for member 'end' in 'ans', which is of non-class type 'int'
   43 |         ans.erase(unique(ans.begin(), ans.end()), ans.end());
      |                                           ^~~
0_0_38728389_13978.cpp:43:55: error: request for member 'end' in 'ans', which is of non-class type 'int'
   43 |         ans.erase(unique(ans.begin(), ans.end()), ans.end());
      |                                                       ^~~
0_0_38728389_13978.cpp:44:21: error: request for member 'size' in 'ans', which is of non-class type 'int'
   44 |         cout << ans.size() << "\n";
      |                     ^~~~
0_0_38728389_13978.cpp:45:23: error: 'begin' was not declared in this scope
   45 |         for (auto x : ans) cout << x.fi << ' ' << x.se << "\n";
      |                       ^~~
0_0_38728389_13978.cpp:45:23: 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_38728389_13978.cpp:45:23: error: 'end' was not declared in this scope
   45 |         for (auto x : ans) cout << x.fi << ' ' << x.se << "\n";
      |                       ^~~
0_0_38728389_13978.cpp:45:23: 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;
      |          ^~~


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-30 14:38:07, Gzip enabled