Borderou de evaluare (job #2182210)
Utilizator | Data | 22 martie 2018 11:05:17 | |
---|---|---|---|
Problema | Cercuri5 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
^
user.cpp:7:0: warning: ignoring #pragma disable [-Wunknown-pragmas]
#pragma disable()
^
user.cpp:8:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
^
user.cpp:19:16: error: ‘double y1’ redeclared as different kind of symbol
double x1, x2, y1, y2, r;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482,
from /usr/include/c++/5/utility:68,
from /usr/include/c++/5/algorithm:60,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void get_data()’:
user.cpp:26:21: error: invalid operands of types ‘double(double) throw ()’ and ‘double’ to binary ‘operator+’
double y3 = (y1 + y2) / 2;
^
user.cpp:27:52: error: invalid operands of types ‘double’ and ‘double(double) throw ()’ to binary ‘operator-’
double dist = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
^
user.cpp:27:64: error: invalid operands of types ‘double’ and ‘double(double) throw ()’ to binary ‘operator-’
double dist = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
^
user.cpp:30:28: error: invalid operands of types ‘double(double) throw ()’ and ‘double’ to binary ‘operator-’
double tx = term * (y1 - y2) / dist;
^
user.cpp: In function ‘void solve(int)’:
user.cpp:47:50: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 4 has type ‘double (*)(double) throw ()’ [-Wformat=]
fscanf(in, "%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
^
user.cpp:44:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%lf%d", &r, &m);
^
user.cpp:47:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
^
user.cpp: In function ‘int main()’:
user.cpp:62:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &t);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !