Problem | lis |
---|---|
User | Henries |
Submission Time | 2024-12-14 23:54:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis.cpp: In member function ‘void node::upd(long long int, long long int)’:
lis.cpp:31:11: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
31 | return val;
| ^~~
lis.cpp:41:13: error: ‘l’ was not declared in this scope
41 | left->upd(l,r,v);
| ^
lis.cpp:41:15: error: ‘r’ was not declared in this scope
41 | left->upd(l,r,v);
| ^
lis.cpp: In function ‘int main()’:
lis.cpp:62:32: error: no matching function for call to ‘node::upd(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, long long int&)’
62 | segtree->upd(v[i],v[i],dp[i]);
| ^
lis.cpp:29:7: note: candidate: ‘void node::upd(long long int, long long int)’
29 | void upd(long long p,long lo