Submission #533449

# Submission time Handle Problem Language Result Execution time Memory
533449 2022-03-06T05:10:27 Z jjang36524 Circle selection (APIO18_circle_selection) C++14
Compilation error
0 ms 0 KB
//tl shit problem ^^
#include <bits/stdc++.h>
#pragma GCC optimize("O0")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pi;
#define MAX 301010
#define MAXS 20
#define INF 1000000010
#define bb ' '
#define ln '\n'
#define Ln '\n'
pair<pi, pi> in[MAX];
int X[MAX];
int Y[MAX];
int R[MAX];
int ind[MAX];
int ri[MAX];
int ans[MAX];
inline ll sq(ll x) {
	return x * x;
}
inline bool chk(int i, int j) {
	return sq(X[i] - X[j]) + sq(Y[i] - Y[j]) <= sq(R[i] + R[j]);
}
bool isrange(int x, int y) {
	if (x < 0 || y < 0) return false;
	return true;
}
inline ll trans(int x, int y) {
	return ((ll)x * (ll)INF) + y;
}
bool cmp(pair<pi, pi>& p1, pair<pi, pi>& p2) {
	if (p1.first.first == p2.first.first) return p1.first.second < p2.first.second;
	else return p1.first.first > p2.first.first;
}
unordered_map<ll, vector<int>> mp;
//구현 2. mmap/write 이용
#pragma GCC optimize("O3")
#pragma GCC target("avx2")
#include <bits/stdc++.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
using namespace std;

/////////////////////////////////////////////////////////////////////////////////////////////
/*
 * Author : jinhan814
 * Date : 2021-05-06
 * Source : https://blog.naver.com/jinhan814/222266396476
 * Description : FastIO implementation for cin, cout. (mmap ver.)
 */
constexpr int SZ = 1 << 20;

class INPUT {
private:
    char* p;
    bool __END_FLAG__, __GETLINE_FLAG__;
public:
    explicit operator bool() { return !__END_FLAG__; }
    INPUT() {
        struct stat st; fstat(0, &st);
        p = (char*)mmap(0, st.st_size, PROT_READ, MAP_SHARED, 0, 0);
    }
    bool IsBlank(char c) { return c == ' ' || c == '\n'; }
    bool IsEnd(char c) { return c == '\0'; }
    char _ReadChar() { return *p++; }
    char ReadChar() {
        char ret = _ReadChar();
        for (; IsBlank(ret); ret = _ReadChar());
        return ret;
    }
    template<typename T> T ReadInt() {
        T ret = 0; char cur = _ReadChar(); bool flag = 0;
        for (; IsBlank(cur); cur = _ReadChar());
        if (cur == '-') flag = 1, cur = _ReadChar();
        for (; !IsBlank(cur) && !IsEnd(cur); cur = _ReadChar()) ret = 10 * ret + (cur & 15);
        if (IsEnd(cur)) __END_FLAG__ = 1;
        return flag ? -ret : ret;
    }
    string ReadString() {
        string ret; char cur = _ReadChar();
        for (; IsBlank(cur); cur = _ReadChar());
        for (; !IsBlank(cur) && !IsEnd(cur); cur = _ReadChar()) ret.push_back(cur);
        if (IsEnd(cur)) __END_FLAG__ = 1;
        return ret;
    }
    double ReadDouble() {
        string ret = ReadString();
        return stod(ret);
    }
    string getline() {
        string ret; char cur = _ReadChar();
        for (; cur != '\n' && !IsEnd(cur); cur = _ReadChar()) ret.push_back(cur);
        if (__GETLINE_FLAG__) __END_FLAG__ = 1;
        if (IsEnd(cur)) __GETLINE_FLAG__ = 1;
        return ret;
    }
    friend INPUT& getline(INPUT& in, string& s) { s = in.getline(); return in; }
} _in;

class OUTPUT {
private:
    char write_buf[SZ];
    int write_idx;
public:
    ~OUTPUT() { Flush(); }
    explicit operator bool() { return 1; }
    void Flush() {
        write(1, write_buf, write_idx);
        write_idx = 0;
    }
    void WriteChar(char c) {
        if (write_idx == SZ) Flush();
        write_buf[write_idx++] = c;
    }
    template<typename T> int GetSize(T n) {
        int ret = 1;
        for (n = n >= 0 ? n : -n; n >= 10; n /= 10) ret++;
        return ret;
    }
    template<typename T> void WriteInt(T n) {
        int sz = GetSize(n);
        if (write_idx + sz >= SZ) Flush();
        if (n < 0) write_buf[write_idx++] = '-', n = -n;
        for (int i = sz; i-- > 0; n /= 10) write_buf[write_idx + i] = n % 10 | 48;
        write_idx += sz;
    }
    void WriteString(string s) { for (auto& c : s) WriteChar(c); }
    void WriteDouble(double d) { WriteString(to_string(d)); }
} _out;

/* operators */
INPUT& operator>> (INPUT& in, char& i) { i = in.ReadChar(); return in; }
INPUT& operator>> (INPUT& in, string& i) { i = in.ReadString(); return in; }
template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
INPUT& operator>> (INPUT& in, T& i) {
    if constexpr (is_floating_point_v<T>) i = in.ReadDouble();
    else if constexpr (is_integral_v<T>) i = in.ReadInt<T>(); return in;
}

OUTPUT& operator<< (OUTPUT& out, char i) { out.WriteChar(i); return out; }
OUTPUT& operator<< (OUTPUT& out, string i) { out.WriteString(i); return out; }
template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
OUTPUT& operator<< (OUTPUT& out, T i) {
    if constexpr (is_floating_point_v<T>) out.WriteDouble(i);
    else if constexpr (is_integral_v<T>) out.WriteInt<T>(i); return out;
}

/* macros */
#define fastio 1
#define cin _in
#define cout _out
#define istream INPUT
#define ostream OUTPUT
/////////////////////////////////////////////////////////////////////////////////////////////
signed main() {
	int N;
	cin >> N;
	int i;
	for (i = 1; i <= N; i++) cin >> in[i].second.first >> in[i].second.second >> in[i].first.first, in[i].first.second = i;
	sort(in + 1, in + N + 1, cmp);
	for (i = 1; i <= N; i++) tie(X[i], Y[i], R[i], ind[i]) = make_tuple(in[i].second.first + INF, in[i].second.second + INF, in[i].first.first, in[i].first.second);
	int k;
	int s, e;
	e = 0;
	for (k = 30; k >= 0; k--) {
		int r = 1 << k;
		s = e + 1;
		if (R[s] < r / 2) continue;
		mp.clear();
		e = 0;
		for (i = s; i <= N; i++) {
			if (ans[i]) continue;
			int x, y;
			x = X[i] >> k;
			y = Y[i] >> k;
			if (R[i] < r / 2 && !e) e = i - 1;
			int xx, yy;
			mp[((ll)x << 31LL) + y].push_back(i);
		}
		if (e == 0) e = N;
		for (i = s; i <= e; i++) {
			if (ans[i]) continue;
			ans[i] = i;
			int x, y;
			x = X[i] / r;
			y = Y[i] / r;
			int xx, yy;
			for (xx = x - 2; xx <= x + 2; xx++) for (yy = y - 2; yy <= y + 2; yy++) {
				ll t = ((ll)xx << 31LL) + yy;
				vector<int> v;
				for (auto c : mp[t]) {
						if (chk(c, i))
                        	ans[c] = i;
						else
                        	v.push_back(c);
					}
					mp[t] = v;
			}
		}
	}
	for (i = 1; i <= N; i++) ri[ind[i]] = i;
	for (i = 1; i <= N; i++) cout << ind[ans[ri[i]]] << bb;
}

Compilation message

circle_selection.cpp:141:48: error: 'is_arithmetic_v' was not declared in this scope
  141 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                ^~~~~~~~~~~~~~~
circle_selection.cpp:141:64: error: template argument 1 is invalid
  141 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                ^
circle_selection.cpp:141:65: error: expected identifier before '>' token
  141 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                 ^~
circle_selection.cpp:141:69: error: expected unqualified-id before '=' token
  141 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                     ^
circle_selection.cpp:149:48: error: 'is_arithmetic_v' was not declared in this scope
  149 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                ^~~~~~~~~~~~~~~
circle_selection.cpp:149:64: error: template argument 1 is invalid
  149 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                ^
circle_selection.cpp:149:65: error: expected identifier before '>' token
  149 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                 ^~
circle_selection.cpp:149:69: error: expected unqualified-id before '=' token
  149 | template<typename T, typename std::enable_if_t<is_arithmetic_v<T>>* = nullptr>
      |                                                                     ^
circle_selection.cpp: In function 'int main()':
circle_selection.cpp:164:6: error: no match for 'operator>>' (operand types are 'INPUT' and 'int')
  164 |  cin >> N;
      |      ^~ ~
      |         |
      |         int
circle_selection.cpp:139:8: note: candidate: 'INPUT& operator>>(INPUT&, char&)' (near match)
  139 | INPUT& operator>> (INPUT& in, char& i) { i = in.ReadChar(); return in; }
      |        ^~~~~~~~
circle_selection.cpp:139:8: note:   conversion of argument 2 would be ill-formed:
circle_selection.cpp:164:9: error: cannot bind non-const lvalue reference of type 'char&' to an rvalue of type 'char'
  164 |  cin >> N;
      |         ^
circle_selection.cpp:164:6: note: candidate: 'operator>>(int, int)' (built-in)
  164 |  cin >> N;
      |      ^
circle_selection.cpp:164:6: note:   no known conversion for argument 1 from 'INPUT' to 'int'
circle_selection.cpp:140:8: note: candidate: 'INPUT& operator>>(INPUT&, std::string&)'
  140 | INPUT& operator>> (INPUT& in, string& i) { i = in.ReadString(); return in; }
      |        ^~~~~~~~
circle_selection.cpp:140:39: note:   no known conversion for argument 2 from 'int' to 'std::string&' {aka 'std::__cxx11::basic_string<char>&'}
  140 | INPUT& operator>> (INPUT& in, string& i) { i = in.ReadString(); return in; }
      |                               ~~~~~~~~^
In file included from /usr/include/c++/10/string:56,
                 from /usr/include/c++/10/bits/locale_classes.h:40,
                 from /usr/include/c++/10/bits/ios_base.h:41,
                 from /usr/include/c++/10/ios:42,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bits/basic_string.tcc:1476:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
 1476 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/usr/include/c++/10/bits/basic_string.tcc:1476:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/istream:991,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
  931 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/usr/include/c++/10/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
  756 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/usr/include/c++/10/istream:756:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<char, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
  761 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/usr/include/c++/10/istream:761:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<char, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/istream:991,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bits/istream.tcc:963:5: note: candidate: 'template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)'
  963 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/usr/include/c++/10/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/istream:803:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
  803 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/10/istream:803:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<char, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/istream:808:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
  808 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/usr/include/c++/10/istream:808:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<char, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/istream:980:5: note: candidate: 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)'
  980 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/usr/include/c++/10/istream:980:5: note:   template argument deduction/substitution failed:
/usr/include/c++/10/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = INPUT&; _Tp = int&]':
circle_selection.cpp:164:9:   required from here
/usr/include/c++/10/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
In file included from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from circle_selection.cpp:2:
/usr/include/c++/10/complex:500:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_Tp>&)'
  500 |     operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
      |     ^~~~~~~~
/usr/include/c++/10/complex:500:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bitset:1472:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::bitset<_Nb>&)'
 1472 |     operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
      |     ^~~~~~~~
/usr/include/c++/10/bitset:1472:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:71:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)'
   71 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:71:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:101:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)'
  101 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:101:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:132:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)'
  132 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:132:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:170:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)'
  170 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:170:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:200:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)'
  200 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:200:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:230:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)'
  230 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:230:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:264:5: note: candidate: 'template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Get_money<_MoneyT>)'
  264 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:264:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:72,
                 from circle_selection.cpp:2:
/usr/include/c++/10/iomanip:418:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Get_time<_CharT>)'
  418 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_time<_CharT> __f)
      |     ^~~~~~~~
/usr/include/c++/10/iomanip:418:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'std::basic_istream<_CharT, _Traits>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, __shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
circle_selection.cpp:164:9: note:   'INPUT' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  164 |  cin >> N;
      |         ^
In file included from /usr/include/c++/10/valarray:603,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
                 from circle_selection.cpp:2:
/usr/include/c++/10/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_ty