Borderou de evaluare (job #1346902)

Utilizator GinguIonutGinguIonut GinguIonut Data 18 februarie 2015 17:52:25
Problema Energii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:10: error: ‘long int pow’ redeclared as different kind of symbol long int pow=1; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, 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 main()’: user.cpp:16:21: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’ pow=1LL*pow*i; ^ user.cpp:20:20: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator/’ for(i=2;i<=pow/2;i++) ^ user.cpp:22:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator%’ if(pow%i==0) ^ user.cpp:25:16: error: overloaded function with no contextual type information pow/=i; ^

Ceva nu functioneaza?