Problem | numbers |
---|---|
User | justin271828 |
Submission Time | 2024-12-17 11:32:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numbers.cpp:6:12: error: ‘long long int exp10 [18]’ redeclared as different kind of entity
6 | l2 exp10[18];
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from numbers.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:114:1: note: previous declaration ‘double exp10(double)’
114 | __MATHCALL (exp10,, (_Mdouble_ __x));
| ^~~~~~~~~~
numbers.cpp: In function ‘long long int dp(long long int, long long int, int)’:
numbers.cpp:13:17: error: invalid operands of types ‘long long int’ and ‘double(double) noexcept’ to binary ‘operator/’
13 | l2 front = (val/exp10[x])%10;
| ~~~^~~~~~~~~