Problem | swords |
---|---|
User | cokeaholic07 |
Submission Time | 2024-01-14 10:44:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:13:10: error: no match for ‘operator[]’ (operand types are ‘std::multimap<int, int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
13 | m[a[i]]=b[i];
| ^
swords.cpp:18:14: error: no match for ‘operator[]’ (operand types are ‘std::multimap<int, int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
18 | if (m[a[i]]<=m[a[i+1]]) {
| ^
swords.cpp:18:23: error: no match for ‘operator[]’ (operand types are ‘std::multimap<int, int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
18 | if (m[a[i]]<=m[a[i+1]]) {
| ^