Problem | digits |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-30 08:32:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}
digits.cpp:31:14: error: no match for ‘operator%’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘long long int’)
31 | return (l+r)%MOD;
| ~~~~~^~~~
| | |
| | long long int