Problem lightningrod
User SuspiciousAmogus
Submission Time 2024-05-24 18:21:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:31:34: error: ‘x’ was not declared in this scope
31 | pair<int, int> p = make_pair(-(x + y), x - y);
| ^
lightningrod.cpp:31:38: error: ‘y’ was not declared in this scope
31 | pair<int, int> p = make_pair(-(x + y), x - y);
| ^
lightningrod.cpp:36:41: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::back() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?)
36 | if (check(v.back().first, v.back.second, p.first, p.second)) {
| ~~^~~~
| ()