Problem pilot
User dooweidde
Submission Time 2026-02-02 21:43:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pilot.cpp: In function ‘int main()’:
pilot.cpp:14:2: error: expected initializer before ‘unordered_map’
14 | unordered_map<int,int>plane;
| ^~~~~~~~~~~~~
pilot.cpp:20:3: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
20 | pq.push_back({hold,i});
| ^~
| q
pilot.cpp:22:7: error: ‘pq’ was not declared in this scope; did you mean ‘q’?
22 | sort(pq.rbegin(),pq.rend());
| ^~
| q
pilot.cpp:57:3: error: ‘plane’ was not declared in this scope; did you mean ‘planes’?
57 | plane[plane_coor] = total;
| ^~~~~
| planes
pilot.cpp:59:38: error: ‘plane’ was not declared in this scope; did you mean ‘planes’?
59 | for (int i = 0; i < q; i++) cout << plane[i] << "\n";
| ^~~~~
| planes