Problem | lightningrod |
---|---|
User | YH |
Submission Time | 2024-02-11 09:52:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:16:3: error: expected initializer before ‘int’
16 | int y;
| ^~~
lightningrod.cpp:17:10: error: ‘x’ was not declared in this scope
17 | cin >> x >> y;
| ^
lightningrod.cpp:17:15: error: ‘y’ was not declared in this scope
17 | cin >> x >> y;
| ^
lightningrod.cpp:32:8: error: ‘buildings_x’ was not declared in this scope; did you mean ‘buildings’?
32 | if (buildings_x[a] != -1) {
| ^~~~~~~~~~~
| buildings
lightningrod.cpp:33:25: error: no match for ‘operator[]’ (operand types are ‘std::pair<std::__cxx11::basic_string<char>, int>’ and ‘int’)
33 | if (highest_building[1] - abs(stoi(highest_building[0]) - stoi(buildings[a][0])) >= buildings[a][1]) {
| ^
lightningrod.cpp:33:56: error: no match for ‘operator[]’ (operand