Problem convexhull
User chenweilian
Submission Time 2024-01-30 17:25:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

convexhull.cpp:94:5: error: expected unqualified-id before ‘if’
94 | if (s == e) {
| ^~
convexhull.cpp:100:9: error: expected unqualified-id before ‘if’
100 | if (val.m > a.m) {
| ^~
convexhull.cpp:103:9: error: expected unqualified-id before ‘if’
103 | if (l == nullptr) {
| ^~
convexhull.cpp:106:9: error: expected unqualified-id before ‘if’
106 | if (val(m) > a(m)) {
| ^~
convexhull.cpp:109:9: error: expected unqualified-id before ‘else’
109 | else {
| ^~~~
convexhull.cpp: In function ‘int main()’:
convexhull.cpp:138:19: error: ‘struct node’ has no member named ‘upd’
138 | root->upd(line(a,b));
| ^~~