Problem | lightningrod |
---|---|
User | YH |
Submission Time | 2024-02-11 09:51:42 |
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:19:3: error: ‘buildings’ was not declared in this scope; did you mean ‘buidlings’?
19 | buildings.push_back(pair< string, int >(x, y));
| ^~~~~~~~~
| buidlings
lightningrod.cpp:22:7: error: ‘buildings’ was not declared in this scope; did you mean ‘buidlings’?
22 | sort(buildings.begin(), buildings.end());
| ^~~~~~~~~
| buidlings
lightningrod.cpp:32:8: error: ‘buildings_x’ was not declared in this scope; did you mean ‘buidlings’?
32 | if (buildings_x[a] != -1) {
|