/in/foo.cc: In function 'int main()':
/in/foo.cc:5:3: error: 'll' was not declared in this scope
ll n = 0, a = 0, ans = 0;
^~
/in/foo.cc:7:10: error: 'n' was not declared in this scope
cin >> n;
^
/in/foo.cc:9:12: error: 'a' was not declared in this scope
cin >> a;
^
/in/foo.cc:13:5: error: 'a' was not declared in this scope
a = pq.top(), pq.pop();
^
/in/foo.cc:15:5: error: 'ans' was not declared in this scope
ans += a, pq.push(a);
^~~
/in/foo.cc:18:5: error: 'a' was not declared in this scope
a = pq.top(), pq.pop();
^
/in/foo.cc:26:7: error: 'ans' was not declared in this scope
ans += a, pq.push(a);
^~~
/in/foo.cc:29:11: error: 'ans' was not declared in this scope
cout << ans << endl;
^~~