Borderou de evaluare (job #1026692)
| Utilizator | Data | 11 noiembrie 2013 21:35:49 | |
|---|---|---|---|
| Problema | Colaj | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:8:31: error: ‘int y0’ redeclared as different kind of symbol
int n,k,x[200],y[200],x0(0),y0(0),m,p;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iostream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:241:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void citire()’:
user.cpp:45:25: error: assignment of function ‘double y0(double)’
if(xb==0) y0=-1;
^
user.cpp:45:25: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp: In function ‘void matrice()’:
user.cpp:78:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(j=v[k].a; j<v[k].c; j++)a[i+y0][j+x0]=1;
^
user.cpp:78:47: error: invalid types ‘char [201][201][double (*)(double)throw ()]’ for array subscript
for(j=v[k].a; j<v[k].c; j++)a[i+y0][j+x0]=1;
^
user.cpp:75:13: warning: unused variable ‘k’ [-Wunused-variable]
int i,j,k;
^
user.cpp: In function ‘int main()’:
user.cpp:106:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(oky) p=poz(y[k],y)+y0;
^
user.cpp:106:26: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
if(oky) p=poz(y[k],y)+y0;
^
user.cpp:107:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else p=poz(y[k],y)+1+y0;
^
user.cpp:107:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:107:25: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
else p=poz(y[k],y)+1+y0;
^
user.cpp: In function ‘int poz(int, int*)’:
user.cpp:62:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
