Problem sandd
User mingging1748
Submission Time 2025-01-27 18:42:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:5: error: ‘unordered_map’ was not declared in this scope
8 | unordered_map<int, ll> sca;
| ^~~~~~~~~~~~~
sandd.cpp:8:19: error: expected primary-expression before ‘int’
8 | unordered_map<int, ll> sca;
| ^~~
sandd.cpp:9:19: error: expected primary-expression before ‘int’
9 | unordered_map<int, ll> dca;
| ^~~
sandd.cpp:15:13: error: ‘sca’ was not declared in this scope
15 | if (sca.find(mid) != sca.end()) {
| ^~~
sandd.cpp:23:13: error: ‘dca’ was not declared in this scope
23 | if (dca.find(mid) != dca.end()) {
| ^~~