Problem | lasers2 |
---|---|
User | PrunJuice |
Submission Time | 2025-04-21 15:10:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lasers2.cpp: In member function ‘void Seg::add(int, int, int, int, int)’:
lasers2.cpp:32:22: error: ‘v’ was not declared in this scope
32 | apply(p, v);
| ^
lasers2.cpp: In function ‘int main()’:
lasers2.cpp:126:52: error: no matching function for call to ‘Seg::add(int, int, int, int, int, ll&)’
126 | T0.add(0, lft-1, 0, MAXM-1, 1, cost);
| ^
lasers2.cpp:29:10: note: candidate: ‘void Seg::add(int, int, int, int, int)’
29 | void add(int L, int R, int l=0, int r=MAXM-1, int p=1) {
| ^~~
lasers2.cpp:29:10: note: candidate expects 5 arguments, 6 provided
lasers2.cpp:127:52: error: no matching function for call to ‘Seg::add(int, int, int, int, int, ll&)’
127 | T1.add(0, lft-1, 0, MAXM-1, 1, cost);
| ^
lasers2.cpp:29:10: note: candidat