Problem ntuc
User AliLam
Submission Time 2025-06-19 11:11:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ntuc.cpp: In function ‘int main()’:
ntuc.cpp:7:5: error: ‘priority’ was not declared in this scope
7 | priority queue<long long>Stock;
| ^~~~~~~~
ntuc.cpp:8:13: error: expected ‘;’ before ‘queue’
8 | priority queue<long long>price;
| ^~~~~~
| ;
ntuc.cpp:11:9: error: ‘stock’ was not declared in this scope
11 | stock.push(a);
| ^~~~~
ntuc.cpp:15:9: error: ‘price’ was not declared in this scope
15 | price.push(b);
| ^~~~~
ntuc.cpp:17:11: error: ‘stock’ was not declared in this scope
17 | ans = stock.top()*price.top();
| ^~~~~
ntuc.cpp:17:23: error: ‘price’ was not declared in this scope
17 | ans = stock.top()*price.top();
| ^~~~~