answer.code: In function ‘void solve()’:
answer.code:22:5: error: ‘cin’ was not declared in this scope
22 | cin>>n;
| ^~~
answer.code:23:5: error: ‘vector’ was not declared in this scope
23 | vector<int>a(n+1);
| ^~~~~~
answer.code:23:12: error: expected primary-expression before ‘int’
23 | vector<int>a(n+1);
| ^~~
answer.code:24:20: error: ‘pair’ was not declared in this scope
24 | priority_queue<pair<int,int>,vector<pair<int,int>>,greater<>>now;
| ^~~~
answer.code:24:5: error: ‘priority_queue’ was not declared in this scope
24 | priority_queue<pair<int,int>,vector<pair<int,int>>,greater<>>now;
| ^~~~~~~~~~~~~~
answer.code:24:25: error: expected primary-expression before ‘int’
24 | priority_queue<pair<int,int>,vector<pair<int,int>>,greater<>>now;
| ^~~
answer.code:25:32: error: ‘a’ was not declared in this scope
25 | for(int i=1;i<=n;i++) cin>>a[i],now.push({d(a[i]),a[i]});
| ^
answer.code:25:37: error: ‘now’ was not declared in this scope
25 | for(int i=1;i<=n;i++) cin>>a[i],now.push({d(a[i]),a[i]});
| ^~~
answer.code:28:11: error: ‘now’ was not declared in this scope
28 | while(now.size()>1){
| ^~~
answer.code:37:5: error: ‘cout’ was not declared in this scope
37 | cout<<now.top().S<<"\n";
| ^~~~
answer.code:37:11: error: ‘now’ was not declared in this scope
37 | cout<<now.top().S<<"\n";
| ^~~
answer.code: In function ‘int main()’:
answer.code:41:5: error: ‘ios’ has not been declared
41 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~
answer.code:41:29: error: ‘cin’ was not declared in this scope
41 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~