Problem | digits |
---|---|
User | Josh28 |
Submission Time | 2023-03-12 23:27:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
digits.cpp: In function ‘void sub(long long int&)’:
digits.cpp:68:26: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
68 | ll ans = bruh-x; return ans;
| ^~~
digits.cpp: At global scope:
digits.cpp:106:2: error: expected ‘;’ after struct definition
106 | }
| ^
| ;
digits.cpp: In member function ‘void node::update(ll, ll)’:
digits.cpp:96:32: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘ll’ {aka ‘long long int’} [-fpermissive]
96 | value += qexp(10, right-mid, mod)*l->value; sub(value);
| ~~~~~^~~~
| |
| std::ios_base& (*)(std::ios_base&)
digits.cpp:71:18: note: initializing argument 2 of ‘ll qexp(ll, ll, ll)’
71 | ll qexp(ll A, ll B, ll M) {
| ~~~^
digits.cpp: In function ‘void sol