Borderou de evaluare (job #1671249)
Utilizator | Data | 1 aprilie 2016 15:19:53 | |
---|---|---|---|
Problema | Bile5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:14: error: ‘int y1’ redeclared as different kind of symbol
int t,n,i,x1,y1,x2,y2,x3,y3,xv,yv,st,dr;
^
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:42:11: error: assignment of function ‘double y1(double)’
y1=f(x1);
^
user.cpp:42:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:45:18: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
x3=x1+y2-y1;
^
user.cpp:53:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
printf("%d\n",y1);
^
user.cpp:54:15: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
++y1;
^
user.cpp:54:15: error: lvalue required as increment operand
user.cpp:32:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bile5.in","r",stdin);
^
user.cpp:33:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bile5.out","w",stdout);
^
user.cpp:35:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:38:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:40:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&s[i],&p[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !