Borderou de evaluare (job #1502133)

Utilizator patrutoiuandreipatrutoiu andrei patrutoiuandrei Data 14 octombrie 2015 11:10:48
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:24: error: ‘int pow’ redeclared as different kind of symbol int i,j,n,m,val,sol,nr,pow,cod[dim]; ^ 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:36:7: error: overloaded function with no contextual type information pow=1; ^ user.cpp:41:10: error: overloaded function with no contextual type information pow*=3; ^ user.cpp:43:7: error: overloaded function with no contextual type information pow/=3; ^ user.cpp:48:29: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator*’ nr=(nr-pow*(s[i-m]-'a'))*3+s[i]-'a'; ^

Ceva nu functioneaza?