Borderou de evaluare (job #2540074)
Utilizator | Data | 6 februarie 2020 18:36:44 | |
---|---|---|---|
Problema | ABPerm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:22:14: error: 'long long int pow10 [100007]' redeclared as different kind of symbol
int pow10[DIM];
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:122:1: note: previous declaration 'double pow10(double)'
__MATHCALL (pow10,, (_Mdouble_ __x));
^
main.cpp: In function 'bool match(long long int, long long int, long long int, long long int)':
main.cpp:84:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cod1 *= pow10[n - r];
^
main.cpp:84:21: error: invalid operands of types 'long long int' and 'double(double) throw ()' to binary 'operator*'
main.cpp:84:21: error: in evaluation of 'operator*=(long long int, double(double) throw ())'
main.cpp:85:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cod2 *= pow10[n - y];
^
main.cpp:85:21: error: invalid operands of types 'long long int' and 'double(double) throw ()' to binary 'operator*'
main.cpp:85:21: error: in evaluation of 'operator*=(long long int, double(double) throw ())'
main.cpp: At global scope:
main.cpp:147:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
main.cpp: In function 'int main()':
main.cpp:174:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[0] = 1;
^
main.cpp:174:13: error: assignment of function 'double pow10(double)'
pow10[0] = 1;
^
main.cpp:174:13: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:178:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = (pow10[i - 1] * 10) % mod;
^
main.cpp:178:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = (pow10[i - 1] * 10) % mod;
^
main.cpp:178:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
main.cpp:178:28: error: invalid operands of types 'double(double) throw ()' and 'int' to binary 'operator*'
pow10[i] = (pow10[i - 1] * 10) % mod;
~~~~~~~~~~~~~^~~~
main.cpp:183:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
hash1[i] = (hash1[i - 1] + pow10[i - 1] * v1[i]) % mod;
^
main.cpp:183:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
main.cpp:183:43: error: invalid operands of types 'double(double) throw ()' and 'long long int' to binary 'operator*'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !