Borderou de evaluare (job #1115059)
Utilizator | Data | 21 februarie 2014 20:09:46 | |
---|---|---|---|
Problema | Gigel si Resturile | Status | done |
Runda | Infoarena Monthly 2014 - Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:10: error: ‘long long int pow’ redeclared as different kind of symbol
ll A,B,K,pow=1;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:154:1: error: previous declaration of ‘double pow(double, double)’
__MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
user.cpp: In function ‘int main()’:
user.cpp:27:31: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
A+=1LL * deco(s[i]) * pow;
^
user.cpp:28:12: error: overloaded function with no contextual type information
pow*=B;
^
user.cpp:29:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator>’
if(pow>K){
^
user.cpp: In function ‘long long int deco(char)’:
user.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !