Problem | lightningrod |
---|---|
User | Informatics271 |
Submission Time | 2025-06-09 08:57:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:18:15: error: cannot convert ‘std::vector<int>::empty’ from type ‘bool (std::vector<int>::)() const noexcept’ to type ‘bool’
18 | while (!ans.empty){
| ^~~~~
lightningrod.cpp:18:15: error: in argument to unary !
lightningrod.cpp:24:25: error: ‘p’ was not declared in this scope
24 | if (!ans.empty() && Y[p]-Y[i]>=X[i]-X[p]) continue;
| ^