Borderou de evaluare (job #2087303)

Utilizator georgitTreista Georgiana georgit Data 13 decembrie 2017 12:26:39
Problema Shop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:16: error: ‘int pow’ redeclared as different kind of symbol int n,c,l,sum,pow,nr[50],j,i; ^ 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:20:12: error: overloaded function with no contextual type information pow=1; ^ user.cpp:22:16: error: overloaded function with no contextual type information pow*=c; ^ user.cpp:23:14: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ if(l/pow<=a[i].second.first) ^ user.cpp:25:38: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ nr[a[i].second.second]=l/pow; ^ user.cpp:26:20: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ sum+=l/pow; ^ user.cpp:27:14: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator%’ l%=pow; ^ user.cpp:27:14: error: in evaluation of ‘operator%=(int, <unresolved overloaded function type>)’ user.cpp:33:35: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’ l=l-a[i].second.first*pow; ^

Ceva nu functioneaza?