Borderou de evaluare (job #1141261)
Utilizator | Data | 12 martie 2014 19:04:55 | |
---|---|---|---|
Problema | ScaleCrop | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:12: error: ‘double y1’ redeclared as different kind of symbol
double x1, y1, x2, y2;
^
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/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:11:42: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
^
user.cpp:12:35: error: invalid operands of types ‘double’ and ‘double(double)throw ()’ to binary ‘operator/’
double alpha = min(x2 / x1, y2 / y1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !