Problem | lightningrod |
---|---|
User | YH |
Submission Time | 2024-02-11 09:53:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:32:24: error: no match for ‘operator[]’ (operand types are ‘std::pair<std::__cxx11::basic_string<char>, int>’ and ‘int’)
32 | if (highest_building[1] - abs(stoi(highest_building[0]) - stoi(buildings[a][0])) >= buildings[a][1]) {
| ^
lightningrod.cpp:32:55: error: no match for ‘operator[]’ (operand types are ‘std::pair<std::__cxx11::basic_string<char>, int>’ and ‘int’)
32 | if (highest_building[1] - abs(stoi(highest_building[0]) - stoi(buildings[a][0])) >= buildings[a][1]) {
| ^
lightningrod.cpp:32:79: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<std::__cxx11::basic_string<char>, int> >, std::pair<std::__cxx11::basic_string<char>, int> >::value_type’ {aka ‘std::pair<std::__cxx11::b