Borderou de evaluare (job #1516354)

Utilizator akaprosAna Kapros akapros Data 2 noiembrie 2015 22:54:50
Problema Colectie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:25: error: ‘int pow10 [10]’ redeclared as different kind of symbol int nr[maxD], pow10[maxD], s[maxD], digits[maxD]; ^ 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/cstdio:41, 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 cp(int, int)’: user.cpp:55:53: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol = first[pos - 1] * pow10[digits[0] - pos]; ^ user.cpp:55:53: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:59:57: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol = first[pos - 1] * pow10[digits[0] - pos] + last[pos + 1] + 1; ^ user.cpp:59:57: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:61:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol = (first[pos - 1] - 1) * pow10[digits[0] - pos] + last[pos + 1] + 1; ^ user.cpp:61:63: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:66:57: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol = first[pos - 1] * pow10[digits[0] - pos]; ^ user.cpp:66:57: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp:68:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] sol = (first[pos - 1] + 1) * pow10[digits[0] - pos]; ^ user.cpp:68:63: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ user.cpp: In function ‘void ANS()’: user.cpp:75:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[0] = 1; ^ user.cpp:75:14: error: assignment of function ‘double pow10(double)’ pow10[0] = 1; ^ user.cpp:75:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:80:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[digits[0]] = pow10[digits[0] - 1] * 10; ^ user.cpp:80:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow10[digits[0]] = pow10[digits[0] - 1] * 10; ^ user.cpp:80:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:80:51: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’ pow10[digits[0]] = pow10[digits[0] - 1] * 10; ^

Ceva nu functioneaza?