Borderou de evaluare (job #1499589)
Utilizator | Data | 10 octombrie 2015 20:40:38 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:23: error: ‘int y0’ redeclared as different kind of symbol
int n,k,nr,nl,nc,x0=1,y0=1;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:2:
/usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void citire()’:
user.cpp:32:35: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
if((v[r].b==0)||(v[r].d==0))y0--; //cu un varf pe Ox sau Oy sau in O
^
user.cpp:32:35: error: lvalue required as decrement operand
user.cpp: In function ‘void matrice()’:
user.cpp:73:38: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(i=v[k].pb;i<v[k].pd ;i++)a[i+y0][j+x0]=1;
^
user.cpp:73:40: error: invalid types ‘char [210][210][double (*)(double)throw ()]’ for array subscript
for(i=v[k].pb;i<v[k].pd ;i++)a[i+y0][j+x0]=1;
^
user.cpp: In function ‘void bordare()’:
user.cpp:78:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nl=y0+2*n-1;
^
user.cpp:78:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nl=y0+2*n-1;
^
user.cpp:78:11: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
nl=y0+2*n-1;
^
user.cpp: In function ‘void citire()’:
user.cpp:22:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d",&n,&m,&p);
^
user.cpp:25:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{ fscanf(f,"%d%d%d%d",&xa,&xb,&xc,&xd);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !