Problem | digits |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-30 08:31:01 |
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: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
| std::__cxx11::basic_string<char>
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from digits.cpp:1:
/usr/include/c++/9/