Problem | digits |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-30 08:31:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
digits.cpp: In function ‘void build(long long int, long long int, long long int)’:
digits.cpp:18:24: error: ‘segmentree’ was not declared in this scope; did you mean ‘segmenttree’?
18 | segmenttree[index] = (segmentree[2*index+1]+segmenttree[2*index+2])%MOD;
| ^~~~~~~~~~
| segmenttree
digits.cpp: In function ‘std::string query(long long int, long long int, long long int, long long int, long long int)’:
digits.cpp:23:27: error: could not convert ‘segmenttree.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)index))’ from ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
23 | return segmenttree[index];
| ^
| |
| __gnu_cxx::__a