Borderou de evaluare (job #2239319)
Utilizator | Data | 10 septembrie 2018 15:55:18 | |
---|---|---|---|
Problema | Cercuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:9: error: ‘long int y1’ redeclared as different kind of symbol
long x1,y1,r1,x2,y2,r2,q,t;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/iostream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:17:59: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘double (*)(double) throw ()’ [-Wformat=]
scanf("%ld%ld%ld%ld%ld%ld",&x1,&y1,&r1,&x2,&y2,&r2);
^
user.cpp:18:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
dist=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
^~
user.cpp:18:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
dist=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
^~
user.cpp:18:42: error: invalid operands of types ‘double (*)(double) throw ()’ and ‘double (*)(double) throw ()’ to binary ‘operator*’
dist=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
~~~~~~~^~~~~~~~
user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cercuri.in","r",stdin);
^
user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cercuri.out","w",stdout);
^
user.cpp:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&t);
^
user.cpp:17:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld%ld%ld%ld%ld",&x1,&y1,&r1,&x2,&y2,&r2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !