Problem | commando |
---|---|
User | Xiaoyang |
Submission Time | 2022-12-24 14:46:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
commando.cpp: In member function ‘long long int line::operator()(long long int)’:
commando.cpp:21:34: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
21 | ll operator()(ll x){return m*(x-mod)+c;}
| ^~~
| modf
commando.cpp: In function ‘int main()’:
commando.cpp:57:16: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
57 | insert(1,0,1e7,y);
| ^
commando.cpp:25:17: note: initializing argument 1 of ‘void insert(long long int&, long long int, long long int, line)’
25 | void insert(ll &idx,ll l,ll r,line y){
| ^