| Problem | lightningrod |
|---|---|
| User | Kiameimon |
| Submission Time | 2024-01-04 14:36:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:68:14: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
68 | vector<Point> arr;
| ^
lightningrod.cpp:68:14: note: expected a type, got ‘Point’
lightningrod.cpp:68:14: error: template argument 2 is invalid
lightningrod.cpp:71:15: error: request for member ‘back’ in ‘arr’, which is of non-class type ‘int’
71 | if(x == arr.back().x) arr.back() = {x, max(arr.back().y, y)+1};
| ^~~~
lightningrod.cpp:71:29: error: request for member ‘back’ in ‘arr’, which is of non-class type ‘int’
71 | if(x == arr.back().x) arr.back() = {x, max(arr.back().y, y)+1};
| ^~~~
lightningrod.cpp:71:50: error: request for member ‘back’ in ‘arr’, which is of non-class type ‘int’
71 | if(x == arr.back().x) arr.back() = {x, max(arr.back().y