Borderou de evaluare (job #1471792)
Utilizator | Data | 15 august 2015 11:03:17 | |
---|---|---|---|
Problema | Concurs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:24: error: ‘int y1’ redeclared as different kind of symbol
int v[NMax],x,y,Max,x1,y1,aux;
^
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/iostream:38,
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:85:15: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:85:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:93:19: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:93:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:96:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x1==x && y1>y)
^
user.cpp:98:19: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:98:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:105:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
printf("%d %d %d",Max,x1,y1);
^
user.cpp: In function ‘void Read()’:
user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("concurs.in","r",stdin);
^
user.cpp:16:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
^
user.cpp:19:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:23:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp: In function ‘int main()’:
user.cpp:80:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:104:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("concurs.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !