Problem explosion
User samvar0907
Submission Time 2024-03-26 16:09:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosion.cpp: In function ‘int main()’:
explosion.cpp:16:16: error: ‘X’ was not declared in this scope
16 | cin >> X >> Y;
| ^
explosion.cpp:16:21: error: ‘Y’ was not declared in this scope
16 | cin >> X >> Y;
| ^
explosion.cpp:17:48: error: ‘A’ was not declared in this scope
17 | buildings.push_back({i + 1, dist(X, Y, A, B)});
| ^
explosion.cpp:17:51: error: ‘B’ was not declared in this scope
17 | buildings.push_back({i + 1, dist(X, Y, A, B)});
| ^
explosion.cpp:17:54: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)’
17 | buildings.push_back({i + 1, dist(X, Y, A, B)});
|