Problem summoning
User calvinkulit
Submission Time 2026-06-26 15:44:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summoning.cpp: In function ‘int main()’:
summoning.cpp:21:3: error: ‘upperBoundIndex’ was not declared in this scope; did you mean ‘lowerBoundIndex’?
21 | upperBoundIndex = upper_bound(itemCosts.begin(), itemCosts.end(), wallet) - itemCosts.begin();
| ^~~~~~~~~~~~~~~
| lowerBoundIndex