Borderou de evaluare (job #1680976)
Utilizator | Data | 9 aprilie 2016 10:54:09 | |
---|---|---|---|
Problema | NN | Status | done |
Runda | Grigore Moisil 2016 Clasa a 10-a | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:11: error: ‘int y1’ redeclared as different kind of symbol
int x1,x2,y1,y2,n,m,i,j,poz1,poz2;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:44:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
^
user.cpp:45:27: error: invalid cast from type ‘double (*)(double)throw ()’ to type ‘double’
x=(double)x1;y=(double)y1;
^
user.cpp:52:11: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’
if (y1*x2>y2*x1) {
^
user.cpp:30:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nn.in","r",stdin);
^
user.cpp:31:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nn.out","w",stdout);
^
user.cpp:32:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:35:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i].x,&a[i].y);
^
user.cpp:44:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !