Borderou de evaluare (job #1231781)
Utilizator | Data | 21 septembrie 2014 15:38:35 | |
---|---|---|---|
Problema | Mission | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:8: error: ‘int y0’ redeclared as different kind of symbol
int x0,y0;
^
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:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:53:7: error: assignment of function ‘double y0(double)’
y0=v[1].y;
^
user.cpp:53:7: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:62:11: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
v[t].y=y0;
^
user.cpp:70:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(v[i].x==x0 && v[i].y==y0)
^
user.cpp:45:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&n);
^
user.cpp:49:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d",&v[i].x,&v[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !