Borderou de evaluare (job #1715788)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 11 iunie 2016 14:57:32
Problema GFact Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:29:15: error: ‘int pow [100][2]’ redeclared as different kind of symbol int pow[100][2], last; ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:155:1: error: previous declaration of ‘double pow(double, double)’ __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘int ok(long long int)’: user.cpp:34:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] long long p=pow[i][0]; ^ user.cpp:34:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] long long p=pow[i][0]; ^ user.cpp:34:26: error: invalid conversion from ‘double (*)(double, double)throw ()’ to ‘long long int’ [-fpermissive] long long p=pow[i][0]; ^ user.cpp:38:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] p*=pow[i][0]; ^ user.cpp:38:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] p*=pow[i][0]; ^ user.cpp:38:14: error: invalid operands of types ‘long long int’ and ‘double(double, double)throw ()’ to binary ‘operator*’ p*=pow[i][0]; ^ user.cpp:38:14: error: in evaluation of ‘operator*=(long long int, double(double, double)throw ())’ user.cpp:40:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(sum<pow[i][1]) ^ user.cpp:40:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(sum<pow[i][1]) ^ user.cpp:40:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp: In function ‘int main()’: user.cpp:56:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow[last][0]=d; ^ user.cpp:56:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow[last][0]=d; ^ user.cpp:56:25: error: assignment of read-only location ‘*(pow + ((sizetype)last))’ pow[last][0]=d; ^ user.cpp:56:25: error: cannot convert ‘int’ to ‘double(double, double)throw ()’ in assignment user.cpp:58:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] pow[last][1]++; ^

Ceva nu functioneaza?