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_38728893_25758.cpp: In function 'void konbi()':
0_0_38728893_25758.cpp:12:29: error: 'struct std::pair<int, int>' has no member named 'fi'
   12 |                 cin >> p[i].fi >> p[i].se;
      |                             ^~
0_0_38728893_25758.cpp:12:40: error: 'struct std::pair<int, int>' has no member named 'se'
   12 |                 cin >> p[i].fi >> p[i].se;
      |                                        ^~
0_0_38728893_25758.cpp:18:31: error: 'struct std::pair<int, int>' has no member named 'fi'
   18 |                 int dx = p[i].fi - p[1].fi;
      |                               ^~
0_0_38728893_25758.cpp:18:41: error: 'struct std::pair<int, int>' has no member named 'fi'
   18 |                 int dx = p[i].fi - p[1].fi;
      |                                         ^~
0_0_38728893_25758.cpp:19:31: error: 'struct std::pair<int, int>' has no member named 'se'
   19 |                 int dy = p[i].se - p[1].se;
      |                               ^~
0_0_38728893_25758.cpp:19:41: error: 'struct std::pair<int, int>' has no member named 'se'
   19 |                 int dy = p[i].se - p[1].se;
      |                                         ^~
0_0_38728893_25758.cpp:27:54: error: 'struct std::pair<int, int>' has no member named 'fi'
   27 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                                      ^~
0_0_38728893_25758.cpp:27:68: error: 'struct std::pair<int, int>' has no member named 'se'
   27 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                                                    ^~
0_0_38728893_25758.cpp:27:47: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>' and '<brace-enclosed initializer list>')
   27 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                               ^
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
                 from .\stdc++.h:152:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:7: note: candidate: '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> >; mapped_type = int; key_type = std::pair<int, int>]'
  502 |       operator[](const key_type& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:34: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::map<std::pair<int, int>, int>::key_type&' {aka 'const std::pair<int, int>&'}
  502 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](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> >; mapped_type = int; key_type = std::pair<int, int>]'
  522 |       operator[](key_type&& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:29: 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>&&'}
  522 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
0_0_38728893_25758.cpp:27:84: error: 'class std::vector<int>' has no member named 'pb'
   27 |                                 mp[p[j]]--; mp[{p[j].fi + dx, p[j].se + dy}]--; id.pb(j);
      |                                                                                    ^~
0_0_38728893_25758.cpp:28:62: error: 'struct std::pair<int, int>' has no member named 'fi'
   28 |                                 if (mp[p[j]] < 0 || mp[{p[j].fi + dx, p[j].se + dy}] < 0) {
      |                                                              ^~
0_0_38728893_25758.cpp:28:76: error: 'struct std::pair<int, int>' has no member named 'se'
   28 |                                 if (mp[p[j]] < 0 || mp[{p[j].fi + dx, p[j].se + dy}] < 0) {
      |                                                                            ^~
0_0_38728893_25758.cpp:28:55: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>' and '<brace-enclosed initializer list>')
   28 |                                 if (mp[p[j]] < 0 || mp[{p[j].fi + dx, p[j].se + dy}] < 0) {
      |                                                       ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:7: note: candidate: '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> >; mapped_type = int; key_type = std::pair<int, int>]'
  502 |       operator[](const key_type& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:34: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::map<std::pair<int, int>, int>::key_type&' {aka 'const std::pair<int, int>&'}
  502 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](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> >; mapped_type = int; key_type = std::pair<int, int>]'
  522 |       operator[](key_type&& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:29: 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>&&'}
  522 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
0_0_38728893_25758.cpp:31:58: error: 'struct std::pair<int, int>' has no member named 'fi'
   31 |                                                 mp[{p[k].fi + dx, p[k].se + dy}]++;
      |                                                          ^~
0_0_38728893_25758.cpp:31:72: error: 'struct std::pair<int, int>' has no member named 'se'
   31 |                                                 mp[{p[k].fi + dx, p[k].se + dy}]++;
      |                                                                        ^~
0_0_38728893_25758.cpp:31:51: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>' and '<brace-enclosed initializer list>')
   31 |                                                 mp[{p[k].fi + dx, p[k].se + dy}]++;
      |                                                   ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:7: note: candidate: '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> >; mapped_type = int; key_type = std::pair<int, int>]'
  502 |       operator[](const key_type& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:502:34: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::map<std::pair<int, int>, int>::key_type&' {aka 'const std::pair<int, int>&'}
  502 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](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> >; mapped_type = int; key_type = std::pair<int, int>]'
  522 |       operator[](key_type&& __k)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:522:29: 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>&&'}
  522 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
0_0_38728893_25758.cpp:39:29: error: 'class std::vector<std::pair<int, int> >' has no member named 'pb'
   39 |                         ans.pb({dx, dy});
      |                             ^~
0_0_38728893_25758.cpp:40:29: error: 'class std::vector<std::pair<int, int> >' has no member named 'pb'
   40 |                         ans.pb({-dx, -dy});
      |                             ^~
0_0_38728893_25758.cpp:47:38: error: 'struct std::pair<int, int>' has no member named 'fi'
   47 |         for (auto x : ans) cout << x.fi << ' ' << x.se << "\n";
      |                                      ^~
0_0_38728893_25758.cpp:47:53: error: 'struct std::pair<int, int>' has no member named 'se'
   47 |         for (auto x : ans) cout << x.fi << ' ' << x.se << "\n";
      |         


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-12-02 19:04:27, Gzip enabled