Problem buycomputer
User ETkilobyte
Submission Time 2025-10-07 21:03:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buycomputer.cpp: In function ‘int main()’:
buycomputer.cpp:12:10: error: no match for ‘operator[]’ (operand types are ‘std::multimap<long long int, long long int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
12 | y[x[i]] = i+1;
| ^
buycomputer.cpp:23:20: error: no match for ‘operator[]’ (operand types are ‘std::multimap<long long int, long long int>’ and ‘long long int’)
23 | cout<<y[*it]<<" ";
| ^