Borderou de evaluare (job #1311653)
Utilizator | Data | 8 ianuarie 2015 14:27:27 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:99: error: ‘int y1 [8001]’ redeclared as different kind of symbol
int dx[]={0,-1,0,1,0},dy[]={0,0,1,0,-1},nr,q[2][4500],a[102][4],i,j,x[802],y[802],x1[8001],y1[8001],n,l,p,viz[801][801],nr1;
^
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:46:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[0]=0;
^
user.cpp:46:10: error: assignment of function ‘double y1(double)’
y1[0]=0;
^
user.cpp:46:10: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:55:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:55:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:55:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:55:21: error: assignment of read-only location ‘*(y1 + ((sizetype)y[i]))’
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:55:21: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:58:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:58:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:58:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:58:25: error: assignment of read-only location ‘*(y1 + ((sizetype)y[i]))’
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:58:25: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:64:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(l=y1[a[i][1]];l<=y1[a[i][3]];l++)
^
user.cpp:64:29: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:64:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !