Problem | lightningrod |
---|---|
User | YH |
Submission Time | 2024-02-11 09:54:42 |
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<char, int>’ and ‘int’)
32 | if (highest_building[1] - abs(stoi(highest_building[0]) - ((int) buildings[a][0]) - 48) >= buildings[a][1]) {
| ^
lightningrod.cpp:32:55: error: no match for ‘operator[]’ (operand types are ‘std::pair<char, int>’ and ‘int’)
32 | if (highest_building[1] - abs(stoi(highest_building[0]) - ((int) buildings[a][0]) - 48) >= buildings[a][1]) {
| ^
lightningrod.cpp:32:81: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<char, int> >, std::pair<char, int> >::value_type’ {aka ‘std::pair<char, int>’} and ‘int’)
32 | if (highest_building[1] - abs(stoi(highest_building[0]) - ((int) buildings[a][0]) - 48) >= bu