Borderou de evaluare (job #945552)
Utilizator | Data | 2 mai 2013 11:39:06 | |
---|---|---|---|
Problema | Puteri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:507:7: error: ‘int exp’ redeclared as different kind of symbol
int n,exp;
^
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/iostream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:101:1: error: previous declaration of ‘double exp(double)’
__MATHCALL (exp,, (_Mdouble_ __x));
^
user.cpp: In function ‘int main()’:
user.cpp:569:40: error: address of overloaded function with no contextual type information
rez.citire(f); fscanf(f,"%d",&exp);
^
user.cpp:570:15: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
if(exp==1) {
^
user.cpp:579:27: error: no matching function for call to ‘lgput(Huge&, <unresolved overloaded function type>, Huge&)’
if(lgput(m,exp,rez)<rez) ls=m+1;
^
user.cpp:579:27: note: candidates are:
user.cpp:539:6: note: Huge lgput(Huge, int)
Huge lgput(Huge b,int exp) {
^
user.cpp:539:6: note: candidate expects 2 arguments, 3 provided
user.cpp:549:6: note: Huge lgput(Huge, int, Huge)
Huge lgput(Huge b,int exp,Huge target) {
^
user.cpp:549:6: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘int’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !