Problem | ntuc |
---|---|
User | tanyikai |
Submission Time | 2025-06-19 11:15:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:26:13: error: conflicting declaration ‘auto cprice’
26 | map[cprice]=cstock;
| ^~~~~~
ntuc.cpp:24:7: note: previous declaration as ‘long long int cprice’
24 | int cprice=price[k];
| ^~~~~~
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’?
28 | opt_price=sprice.top();
|