Problem lratio
User Xiaoyang
Submission Time 2022-12-27 10:54:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lratio.cpp:27:13: error: ‘ld’ does not name a type; did you mean ‘ll’?
27 | mutable ld k, m, p;
| ^~
| ll
lratio.cpp: In member function ‘bool Line::operator<(const Line&) const’:
lratio.cpp:28:50: error: ‘k’ was not declared in this scope
28 | bool operator<(const Line& o) const { return k < o.k; }
| ^
lratio.cpp:28:56: error: ‘const struct Line’ has no member named ‘k’
28 | bool operator<(const Line& o) const { return k < o.k; }
| ^
lratio.cpp: In member function ‘bool Line::operator<(int) const’:
lratio.cpp:29:42: error: ‘p’ was not declared in this scope
29 | bool operator<(int x) const { return p < x; }
| ^
lratio.cpp: At global scope:
lratio.cpp:33:5: error: ‘ld’ does not name a type; d