1_781_5298_10180.cpp: In function 'bool cmp1(int, int)':
1_781_5298_10180.cpp:101:24: error: 'pivot' was not declared in this scope
return atan2(y[u] - y[pivot], x[u] - x[pivot]) < atan2(y[v] - y[pivot], x[v] - x[pivot]);
^
1_781_5298_10180.cpp: In function 'int main()':
1_781_5298_10180.cpp:113:4: error: 'adj' was not declared in this scope
adj[i].clear();
^
1_781_5298_10180.cpp:120:4: error: 'adj' was not declared in this scope
adj[a[i]].push_back(b[i]);
^
1_781_5298_10180.cpp:125:4: error: 'pivot' was not declared in this scope
pivot = i;
^
1_781_5298_10180.cpp:126:13: error: 'adj' was not declared in this scope
sort(all(adj[i]), cmp1);
^
1_781_5298_10180.cpp:15:17: note: in definition of macro 'all'
#define all(x) (x).begin(), (x).end()
^
|