| Problem | lightningrod |
|---|---|
| User | Kiameimon |
| Submission Time | 2024-01-04 14:29:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:55:10: error: ‘readInt’ was not declared in this scope
55 | int n = readInt();
| ^~~~~~~
lightningrod.cpp:59:60: error: ‘y’ was not declared in this scope
59 | if(x == arr.back().x) arr.back() = {x, max(arr.back().y, y)+1};
| ^
lightningrod.cpp:59:64: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Point>, Point>::value_type’ {aka ‘Point’} and ‘<brace-enclosed initializer list>’)
59 | if(x == arr.back().x) arr.back() = {x, max(arr.back().y, y)+1};
| ^
lightningrod.cpp:9:8: note: candidate: ‘constexpr Point& Point::operator=(const Point&)’
9 | struct Point {
| ^~~~~
lightningrod.cpp:9:8: note: no known conversion for argument 1 from ‘<brace-encl