/in/foo.cc:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:1: error: 'priority_queue' was not declared in this scope
priority_queue<int,vector<int>, greater<int> >p;
^~~~~~~~~~~~~~
/in/foo.cc:6:16: error: expected primary-expression before 'int'
priority_queue<int,vector<int>, greater<int> >p;
^~~
/in/foo.cc:7:1: error: 'cin' was not declared in this scope
cin >> num;
^~~
/in/foo.cc:10:1: error: 'p' was not declared in this scope
p.push(x)
^
/in/foo.cc:12:8: error: 'p' was not declared in this scope
while (p.size() != 1) {
^
/in/foo.cc:19:1: error: expected '}' at end of input
}
^