taster.cpp: In function 'bool comp(int, int)':
taster.cpp:7:9: error: 'a' was not declared in this scope
if (a[e1]!=a[e2]) return a[e1]<a[e2];
^
taster.cpp: In function 'std::vector<int> SortWines(int, std::vector<int>)':
taster.cpp:16:20: error: 'a' was not declared in this scope
for (i=0;i<N;i++) a[i]=A[i];
^
taster.cpp:21:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=0;i<N;i++)
^~~
taster.cpp:24:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return ans;
^~~~~~