Problem lightningrod
User YH
Submission Time 2024-02-11 09:51:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp:4:11: error: missing terminating > character
4 | #include <
| ^
lightningrod.cpp:4:10: error: empty filename in #include
4 | #include <
| ^
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:17:3: error: expected initializer before ‘int’
17 | int y;
| ^~~
lightningrod.cpp:18:10: error: ‘x’ was not declared in this scope
18 | cin >> x >> y;
| ^
lightningrod.cpp:18:15: error: ‘y’ was not declared in this scope
18 | cin >> x >> y;
| ^
lightningrod.cpp:20:3: error: ‘buildings’ was not declared in this scope; did you mean ‘buidlings’?
20 | buildings.push_back(pair< string, int >(x, y));
| ^~~~~~~~~
| buidlings
lightningrod.cpp:23:7: error: ‘buildings’ was not declared in this scope; did you mean ‘buidlings’?
23 | sort(buildings.begin(), buildin