| Problem | lightningrod |
|---|---|
| User | Kiameimon |
| Submission Time | 2024-01-04 14:45:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:85:17: error: expected primary-expression before ‘{’ token
85 | if(arr[n-1] != {mx, 0}) arr.push_back({mx, 0});
| ^
lightningrod.cpp:85:16: error: expected ‘)’ before ‘{’ token
85 | if(arr[n-1] != {mx, 0}) arr.push_back({mx, 0});
| ~ ^~
| )
lightningrod.cpp:85:47: 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]’
85 | if(arr[n-1] != {mx, 0}) arr.push_back({mx, 0});
| ^
lightningrod.cpp:86:10: error: ‘convex_hull’ was not declared in this scope; did you mean ‘convexHull’?
86 | cout << convex_hull(arr).size()-2;
| ^~~~~~~~~~~
| convexHull