Problem | lightningrod |
---|---|
User | 6root2i |
Submission Time | 2023-07-25 14:30:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp:16:1: error: expected initializer before ‘bool’
16 | bool is_covering(pair<int,int> i, pair<int,int> j){
| ^~~~
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:24:4: error: ‘Buildings’ was not declared in this scope
24 | Buildings[i] = {readInt(),readInt()};
| ^~~~~~~~~
lightningrod.cpp:31:29: error: ‘Buildings’ was not declared in this scope
31 | if (is_covering(s.top(), Buildings[i])) {
| ^~~~~~~~~
lightningrod.cpp:31:8: error: ‘is_covering’ was not declared in this scope
31 | if (is_covering(s.top(), Buildings[i])) {
| ^~~~~~~~~~~
lightningrod.cpp:42:24: error: ‘Buildings’ was not declared in this scope
42 | if (!covered) s.push(Buildings[i]);
| ^~~~~~~~~