Borderou de evaluare (job #1534253)
Utilizator | Data | 23 noiembrie 2015 16:46:42 | |
---|---|---|---|
Problema | RangeMode | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:24: error: ‘int y1’ redeclared as different kind of symbol
int n,m,i,j,t[nmax],x1,y1,ul,maxx,often,sol[nmax];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
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:24:9: error: assignment of function ‘double y1(double)’
x1=1; y1=1;
^
user.cpp:24:9: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:32:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (y1<=n && i==vy[y1].y) {
^
user.cpp:32:29: error: invalid types ‘date [100010][double(double)throw ()]’ for array subscript
while (y1<=n && i==vy[y1].y) {
^
user.cpp:34:31: error: invalid types ‘date [100010][double(double)throw ()]’ for array subscript
for (int j=start[vy[y1].pos][0];j<=ul;j++)
^
user.cpp:42:18: error: invalid types ‘date [100010][double(double)throw ()]’ for array subscript
sol[vy[y1].pos]=often; start[vy[y1].pos].erase(start[vy[y1].pos].begin()); y1++;
^
user.cpp:42:43: error: invalid types ‘date [100010][double(double)throw ()]’ for array subscript
sol[vy[y1].pos]=often; start[vy[y1].pos].erase(start[vy[y1].pos].begin()); y1++;
^
user.cpp:42:67: error: invalid types ‘date [100010][double(double)throw ()]’ for array subscript
sol[vy[y1].pos]=often; start[vy[y1].pos].erase(start[vy[y1].pos].begin()); y1++;
^
user.cpp:42:86: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
sol[vy[y1].pos]=often; start[vy[y1].pos].erase(start[vy[y1].pos].begin()); y1++;
^
user.cpp:42:86: error: lvalue required as increment operand
user.cpp:15:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rangemode.in","r",stdin);
^
user.cpp:16:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rangemode.out","w",stdout);
^
user.cpp:17:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:18:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) scanf("%d",&t[i]);
^
user.cpp:20:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&vx[i].x,&vx[i].y); vx[i].pos=i; vy[i]=vx[i];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !