Problem ntuc
User tanyikai
Submission Time 2025-06-19 11:15:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ntuc.cpp: In function ‘int main()’:
ntuc.cpp:14:5: error: expected initializer before ‘for’
14 | for(int i=0;i<n;i++){
| ^~~
ntuc.cpp:14:17: error: ‘i’ was not declared in this scope
14 | for(int i=0;i<n;i++){
| ^
ntuc.cpp:21:9: error: ‘sprice’ was not declared in this scope; did you mean ‘price’?
21 | sprice.push(Aj);
| ^~~~~~
| price
ntuc.cpp:24:3: error: ‘cprice’ was not declared in this scope; did you mean ‘price’?
24 | cprice=price[k];
| ^~~~~~
| price
ntuc.cpp:25:3: error: ‘cstock’ was not declared in this scope; did you mean ‘stock’?
25 | cstock=stock[k];
| ^~~~~~
| stock
ntuc.cpp:28:5: error: ‘opt_price’ was not declared in this scope
28 | opt_price=sprice.top();
| ^~~~~~~~~
ntuc.cpp:28:15: error: ‘sprice’ was not declared in this scope; did you mean ‘price’?