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

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:9:5: error: ‘map’ was not declared in this scope
9 | map<int, ll> sca;
| ^~~
sandd.cpp:9:5: note: suggested alternatives:
In file included from /usr/include/c++/9/map:61,
from sandd.cpp:2:
/usr/include/c++/9/bits/stl_map.h:100:11: note: ‘std::map’
100 | class map
| ^~~
In file included from sandd.cpp:2:
/usr/include/c++/9/map:82:13: note: ‘std::pmr::map’
82 | using map
| ^~~
sandd.cpp:9:9: error: expected primary-expression before ‘int’
9 | map<int, ll> sca;
| ^~~
sandd.cpp:10:9: error: expected primary-expression before ‘int’
10 | map<int, ll> dca;
| ^~~
sandd.cpp:16:13: error: ‘sca’ was not declared in this scope; did you mean ‘scanf’?
16 | if (sca.find(mid) != sca.end()) {
| ^~~
|