/in/foo.cc: In function 'int main()':
/in/foo.cc:38:5: error: 'vector' was not declared in this scope
vector<int> p;
^~~~~~
/in/foo.cc:38:12: error: expected primary-expression before 'int'
vector<int> p;
^~~
/in/foo.cc:45:9: error: 'p' was not declared in this scope
p.push_back(t);
^
/in/foo.cc:47:10: error: 'p' was not declared in this scope
sort(p.begin(), p.end());
^
/in/foo.cc:53:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(L.size() > k) {
~~~~~~~~~^~~