Problem | lightningrod |
---|---|
User | YH |
Submission Time | 2024-02-11 09:23:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:45:34: error: assigning to an array from an initializer list
45 | curr_highest_building = {-1, -1};
| ^
lightningrod.cpp:50:33: error: ‘buildings’ was not declared in this scope; did you mean ‘buildings_y’?
50 | curr_highest_building[0] = buildings[x];
| ^~~~~~~~~
| buildings_y
lightningrod.cpp:50:43: error: ‘x’ was not declared in this scope
50 | curr_highest_building[0] = buildings[x];
| ^
lightningrod.cpp:51:43: error: ‘y’ was not declared in this scope
51 | curr_highest_building[1] = buildings[y];
| ^
lightningrod.cpp:55:7: error: ‘current_highest_building’ was not declared in this scope; did you mean ‘curr_highest_building’?
55 | if (cu