Borderou de evaluare (job #1153541)
Utilizator | Data | 25 martie 2014 15:57:32 | |
---|---|---|---|
Problema | Xreverse | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:18: error: ‘int pow10 [1000002]’ redeclared as different kind of symbol
int pow10[1000002], pow10M[1000002];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstring:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:123:1: error: previous declaration of ‘double pow10(double)’
__MATHCALL (pow10,, (_Mdouble_ __x));
^
user.cpp: In function ‘int main()’:
user.cpp:19:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[0] = 1, pow10M[0] = 1;
^
user.cpp:19:14: error: assignment of function ‘double pow10(double)’
pow10[0] = 1, pow10M[0] = 1;
^
user.cpp:19:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:22:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = pow10[i - 1] * 10 % K;
^
user.cpp:22:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = pow10[i - 1] * 10 % K;
^
user.cpp:22:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:22:35: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’
pow10[i] = pow10[i - 1] * 10 % K;
^
user.cpp:38:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
P[i][(jn1 * pow10[1 << (i - 1)] + jn2) % K][(kn2 * pow10[1 << (i - 1)] + kn1) % K] += P[i - 1][jn1][kn1] * P[i - 1][jn2][kn2] % M;
^
user.cpp:38:55: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:38:94: warning: pointer to a function used in arithmetic [-Wpointer-arith]
P[i][(jn1 * pow10[1 << (i - 1)] + jn2) % K][(kn2 * pow10[1 << (i - 1)] + kn1) % K] += P[i - 1][jn1][kn1] * P[i - 1][jn2][kn2] % M;
^
user.cpp:38:94: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:39:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (P[i][(jn1 * pow10[1 << (i - 1)] + jn2) % K][(kn2 * pow10[1 << (i - 1)] + kn1) % K] >= M)
^
user.cpp:39:59: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:39:98: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (P[i][(jn1 * pow10[1 << (i - 1)] + jn2) % K][(kn2 * pow10[1 << (i - 1)] + kn1) % K] >= M)
^
user.cpp:39:98: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:40:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
P[i][(jn1 * pow10[1 << (i - 1)] + jn2) % K][(kn2 * pow10[1 << (i - 1)] + kn1) % K] -= M;
^
user.cpp:40:59: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:40:98: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !