Borderou de evaluare (job #1311605)
Utilizator | Data | 8 ianuarie 2015 13:48:10 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:49: error: ‘int y1 [8001]’ redeclared as different kind of symbol
int coord[100][5],x[210],y[210],x1[8001],y1[8001],i,j,n,m,nr,q[2][5000],k,sol,p,u,l1,l2,c1,c2,l,c,a[202][202];
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream: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:29:5: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[0]=0;
^
user.cpp:29:6: error: assignment of function ‘double y1(double)’
y1[0]=0;
^
user.cpp:29:6: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:44:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:44:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:44:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:44:17: error: assignment of read-only location ‘*(y1 + ((sizetype)y[i]))’
y1[y[i]]=y1[y[i-1]]+2;
^
user.cpp:44:17: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:48:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:48:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:48:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:48:21: error: assignment of read-only location ‘*(y1 + ((sizetype)y[i]))’
y1[y[i]]=y1[y[i-1]]+4;
^
user.cpp:48:21: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:54:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
c1=y1[coord[i][2]];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !