Problem | ntuc |
---|---|
User | tanyikai |
Submission Time | 2025-06-19 11:13:49 |
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:24:18: error: expected ‘]’ before ‘[’ token
24 | map[price[k]]=stock[k];
| ^
| ]
ntuc.cpp:24:30: error: class template argument deduction failed:
24 | map[price[k]]=stock[k];
| ^
ntuc.cpp:24:30: error: no matching function for call to ‘map(long long int&)’
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,