/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:6:18: error: the value of 'll' is not usable in a constant expression
priority_queue<ll, vector<ll>, greater<ll> > pq;
^~
/in/foo.cc:5:3: note: 'll' was not declared 'constexpr'
ll n = 0, a = 0, ans = 0;
^~
/in/foo.cc:6:29: error: the value of 'll' is not usable in a constant expression
priority_queue<ll, vector<ll>, greater<ll> > pq;
^~
/in/foo.cc:5:3: note: 'll' was not declared 'constexpr'
ll n = 0, a = 0, ans = 0;
^~
/in/foo.cc:6:31: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
priority_queue<ll, vector<ll>, greater<ll> > pq;
^
/in/foo.cc:6:31: note: expected a type, got 'll'
/in/foo.cc:6:31: error: template argument 2 is invalid
/in/foo.cc:6:42: error: the value of 'll' is not usable in a constant expression
priority_queue<ll, vector<ll>, greater<ll> > pq;
^~
/in/foo.cc:5:3: note: 'll' was not declared 'constexpr'
ll n = 0, a = 0, ans = 0;
^~
/in/foo.cc:6:44: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp> struct std::greater'
priority_queue<ll, vector<ll>, greater<ll> > pq;
^
/in/foo.cc:6:44: note: expected a type, got 'll'
/in/foo.cc:6:46: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
priority_queue<ll, vector<ll>, greater<ll> > pq;
^
/in/foo.cc:6:46: note: expected a type, got 'll'
/in/foo.cc:6:46: error: template argument 2 is invalid
/in/foo.cc:6:46: error: template argument 3 is invalid
/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:10:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(a);
^~~~
/in/foo.cc:13:5: error: 'a' was not declared in this scope
a = pq.top(), pq.pop();
^
/in/foo.cc:13:12: error: request for member 'top' in 'pq', which is of non-class type 'int'
a = pq.top(), pq.pop();
^~~
/in/foo.cc:13:22: error: request for member 'pop' in 'pq', which is of non-class type 'int'
a = pq.top(), pq.pop();
^~~
/in/foo.cc:14:13: error: request for member 'top' in 'pq', which is of non-class type 'int'
a += pq.top(), pq.pop();
^~~
/in/foo.cc:14:23: error: request for member 'pop' in 'pq', which is of non-class type 'int'
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:15:18: error: request for member 'push' in 'pq', which is of non-class type 'int'
ans += a, pq.push(a);
^~~~
/in/foo.cc:17:14: error: request for member 'empty' in 'pq', which is of non-class type 'int'
while (!pq.empty()) {
^~~~~
/in/foo.cc:18:5: error: 'a' was not declared in this scope
a = pq.top(), pq.pop();
^
/in/foo.cc:18:12: error: request for member 'top' in 'pq', which is of non-class type 'int'
a = pq.top(), pq.pop();
^~~
/in/foo.cc:18:22: error: request for member 'pop' in 'pq', which is of non-class type 'int'
a = pq.top(), pq.pop();
^~~
/in/foo.cc:19:12: error: request for member 'empty' in 'pq', which is of non-class type 'int'
if (pq.empty()) {
^~~~~
/in/foo.cc:22:15: error: request for member 'top' in 'pq', which is of non-class type 'int'
a += pq.top(), pq.pop();
^~~
/in/foo.cc:22:25: error: request for member 'pop' in 'pq', which is of non-class type 'int'
a += pq.top(), pq.pop();
^~~
/in/foo.cc:23:15: error: request for member 'empty' in 'pq', which is of non-class type 'int'
if (!pq.empty()) {
^~~~~
/in/foo.cc:24:17: error: request for member 'top' in 'pq', which is of non-class type 'int'
a += pq.top(), pq.pop();
^~~
/in/foo.cc:24:27: error: request for member 'pop' in 'pq', which is of non-class type 'int'
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:26:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
ans += a, pq.push(a);
^~~~
/in/foo.cc:29:11: error: 'ans' was not declared in this scope
cout << ans << endl;
^~~