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";
|
|