twocircles.cpp:34:26: error: 'line' was not declared in this scope
vector<point> HPI(vector<line>& ln) {
^~~~
twocircles.cpp:34:26: note: suggested alternative: 'Line'
vector<point> HPI(vector<line>& ln) {
^~~~
Line
twocircles.cpp:34:30: error: template argument 1 is invalid
vector<point> HPI(vector<line>& ln) {
^
twocircles.cpp:34:30: error: template argument 2 is invalid
twocircles.cpp: In function 'std::vector<point> HPI(int&)':
twocircles.cpp:35:8: error: 'line' was not declared in this scope
deque<line> dq;
^~~~
twocircles.cpp:35:8: note: suggested alternative: 'Line'
deque<line> dq;
^~~~
Line
twocircles.cpp:35:12: error: template argument 1 is invalid
deque<line> dq;
^
twocircles.cpp:35:12: error: template argument 2 is invalid
twocircles.cpp:36:17: error: 'sz' was not declared in this scope
for(int i=0; i<sz(ln); i++) {
^~
twocircles.cpp:37:12: error: request for member 'size' in 'dq', which is of non-class type 'int'
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^~~~
twocircles.cpp:37:37: error: request for member 'size' in 'dq', which is of non-class type 'int'
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^~~~
twocircles.cpp:37:51: error: request for member 'back' in 'dq', which is of non-class type 'int'
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^~~~
twocircles.cpp:37:63: error: invalid types 'int[int]' for array subscript
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^
twocircles.cpp:37:27: error: 'bad' was not declared in this scope
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^~~
twocircles.cpp:37:27: note: suggested alternative: 'rand'
while(dq.size() >= 2 && bad(dq[dq.size()-2], dq.back(), ln[i]))
^~~
rand
twocircles.cpp:38:7: error: request for member 'pop_back' in 'dq', which is of non-class type 'int'
dq.pop_back();
^~~~~~~~
twocircles.cpp:39:12: error: request for member 'size' in 'dq', which is of non-class type 'int'
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^~~~
twocircles.cpp:39:35: error: invalid types 'int[int]' for array subscript
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^
twocircles.cpp:39:42: error: invalid types 'int[int]' for array subscript
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^
twocircles.cpp:39:49: error: invalid types 'int[int]' for array subscript
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^
twocircles.cpp:39:27: error: 'bad' was not declared in this scope
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^~~
twocircles.cpp:39:27: note: suggested alternative: 'rand'
while(dq.size() >= 2 && bad(dq[0], dq[1], ln[i]))
^~~
rand
twocircles.cpp:40:7: error: request for member 'pop_front' in 'dq', which is of non-class type 'int'
dq.pop_front();
^~~~~~~~~
twocircles.cpp:41:9: error: request for member 'size' in 'dq', which is of non-class type 'int'
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^~~~
twocircles.cpp:41:31: error: request for member 'back' in 'dq', which is of non-class type 'int'
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^~~~
twocircles.cpp:41:43: error: invalid types 'int[int]' for array subscript
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^
twocircles.cpp:41:50: error: invalid types 'int[int]' for array subscript
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^
twocircles.cpp:41:24: error: 'bad' was not declared in this scope
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^~~
twocircles.cpp:41:24: note: suggested alternative: 'rand'
if(dq.size() < 2 || !bad(dq.back(), ln[i], dq[0]))
^~~
rand
twocircles.cpp:42:7: error: request for member 'push_back' in 'dq', which is of non-class type 'int'
dq.push_back(ln[i]);
^~~~~~~~~
twocircles.cpp:42:21: error: invalid types 'int[int]' for array subscript
dq.push_back(ln[i]);
^
twocircles.cpp:45:8: error: request for member 'size' in 'dq', which is of non-class type 'int'
if(dq.size() >= 3) for(int i=0; i<sz(dq); i++) {
^~~~
twocircles.cpp:45:36: error: 'sz' was not declared in this scope
if(dq.size() >= 3) for(int i=0; i<sz(dq); i++) {
^~
twocircles.cpp:48:26: error: invalid types 'int[int]' for array subscript
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^
twocircles.cpp:48:35: error: invalid types 'int[int]' for array subscript
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^
twocircles.cpp:48:44: error: invalid types 'int[int]' for array subscript
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^
twocircles.cpp:48:53: error: invalid types 'int[int]' for array subscript
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^
twocircles.cpp:48:7: error: 'line_intersect' was not declared in this scope
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^~~~~~~~~~~~~~
twocircles.cpp:48:7: note: suggested alternative: 'getIntersect'
if(!line_intersect(dq[i].s, dq[i].t, dq[j].s, dq[j].t, v)) continue;
^~~~~~~~~~~~~~
getIntersect
twocircles.cpp: In function 'int main()':
twocircles.cpp:97:28: error: invalid initialization of reference of type 'int&' from expression of type 'std::vector<Line>'
vector<point> ch = HPI(ln);
^
twocircles.cpp:34:15: note: in passing argument 1 of 'std::vector<point> HPI(int&)'
vector<point> HPI(vector<line>& ln) {
^~~
twocircles.cpp:80:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
twocircles.cpp:82:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
~~~~~^~~~~~~~~~~~~~~~