| Problem | lightningrod |
|---|---|
| User | Kiameimon |
| Submission Time | 2024-01-04 14:40:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:72:30: error: converting to ‘std::vector<Point<long long int> >::value_type’ {aka ‘Point<long long int>’} from initializer list would use explicit constructor ‘Point<T>::Point(T, T) [with T = long long int]’
72 | else arr.push_back({x, y+1});
| ^
lightningrod.cpp:82:12: error: no match for ‘operator!=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Point<long long int> >, Point<long long int> >::value_type’ {aka ‘Point<long long int>’} and ‘Point<long long int>’)
82 | if(arr[1] != st) arr.insert(0, st);
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from lightningrod.cpp:1:
/usr/include/c++/9/bits/regex.h:1037:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator