Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

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()
                 ^


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-06-26 11:56:34, Gzip enabled