Problem | digits |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-30 08:33:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
digits.cpp: In function ‘void update(long long int, long long int, long long int, long long int, std::string)’:
digits.cpp:36:24: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} in assignment
36 | segmenttree[index] = addition;
| ^~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
digits.cpp: In function ‘int32_t main()’:
digits.cpp:65:27: error: could not convert ‘(c2 % MOD)’ from ‘long long int’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
65 | update(0, 0, n-1, b, c2%MOD);
| ~~^~~~
| |
| long long int