Problem | cokemoresugar |
---|---|
User | wongyikai |
Submission Time | 2024-12-30 17:23:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cokemoresugar.cpp: In member function ‘ll node::range_max(int, int)’:
cokemoresugar.cpp:25:38: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘ll’ {aka ‘long long int’} in return
25 | if (s == x && e == y) return mx;
| ^~
| |
| std::pair<long long int, long long int>
cokemoresugar.cpp:29:38: error: conversion from ‘ll’ {aka ‘long long int’} to non-scalar type ‘std::pair<long long int, long long int>’ requested
29 | pair<ll,ll> l2 = l->range_max(x,m),r2 = r->range_max(m+1,y);
| ~~~~~~~~~~~~^~~~~
cokemoresugar.cpp:29:61: error: conversion from ‘ll’ {aka ‘long long int’} to non-scalar type ‘std::pair<long long int, long long int>’ requested
29 | pair<ll,ll> l2 = l->range_max(x,m),r2 = r->range_max(m+1,y