hac.cpp: In function 'int main()':
hac.cpp:25:19: error: no match for 'operator||' (operand types are 'std::multiset<int>' and 'bool')
for(int i=k;s || i!=k;i=(i+1)%n){
~~^~~~~~~
hac.cpp:25:19: note: candidate: operator||(bool, bool) <built-in>
hac.cpp:25:19: note: no known conversion for argument 1 from 'std::multiset<int>' to 'bool'
hac.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
hac.cpp:16:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<n;++i) scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~