Borderou de evaluare (job #1599526)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 13 februarie 2016 22:35:41
Problema Palindrom3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:40: error: ‘int pow10 [1000005]’ redeclared as different kind of symbol int cost[10][10], go[10], pow10[1000005], dp[1000005 / 2][20], cifMax[1000005 / 2][20]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/bits/stl_algobase.h:59, from /usr/include/c++/4.8/vector:60, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:124:1: error: previous declaration of ‘double pow10(double)’ __MATHCALL (pow10,, (_Mdouble_ __x)); ^ user.cpp: In function ‘int main()’: user.cpp:23:13: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] fin >> num + 1; ^ user.cpp:28:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[0] = 1; ^ user.cpp:28:11: error: assignment of function ‘double pow10(double)’ pow10[0] = 1; ^ user.cpp:28:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:30:10: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[i] = (pow10[i - 1] * 10) % k; ^ user.cpp:30:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[i] = (pow10[i - 1] * 10) % k; ^ user.cpp:30:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:30:30: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’ pow10[i] = (pow10[i - 1] * 10) % k; ^ user.cpp:61:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] int oldMod = (mod + k - (cif * pow10[n - i] + cif * pow10[i - 1]) % k) % k; ^ user.cpp:61:47: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:61:68: warning: pointer to a function used in arithmetic [-Wpointer-arith] int oldMod = (mod + k - (cif * pow10[n - i] + cif * pow10[i - 1]) % k) % k; ^ user.cpp:61:68: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:61:68: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:97:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] mod = (mod + k - (cif * pow10[n - i] + cif * pow10[i - 1]) % k) % k; ^ user.cpp:97:38: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:97:59: warning: pointer to a function used in arithmetic [-Wpointer-arith] mod = (mod + k - (cif * pow10[n - i] + cif * pow10[i - 1]) % k) % k; ^ user.cpp:97:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?