Borderou de evaluare (job #1471799)
Utilizator | Data | 15 august 2015 11:17:12 | |
---|---|---|---|
Problema | Cmmmc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12: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:88:15: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:88:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:96:19: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:96:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:99:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x1==x && y1>y)
^
user.cpp:101:19: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:101:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:107: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:17: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:20:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:24: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:75: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:76: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);
^
user.cpp:83:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !