Borderou de evaluare (job #946030)
Utilizator | Data | 3 mai 2013 17:46:38 | |
---|---|---|---|
Problema | Jmenoasa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:20: error: ‘int j1’ redeclared as different kind of symbol
int nr,k,l1,p1,aux,j1,j2,maxi,i,j,n,m,a[1002][1002],h[1002][1002],l[1002],r[1002],st[1002],hh[2][1002];
^
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/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:239:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:39:11: error: assignment of function ‘double j1(double)’
j1=j;
^
user.cpp:39:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:44:18: error: invalid types ‘int [1002][double(double)throw ()]’ for array subscript
h[i&1][j1]=hh[i&1][j1];
^
user.cpp:44:30: error: invalid types ‘int [1002][double(double)throw ()]’ for array subscript
h[i&1][j1]=hh[i&1][j1];
^
user.cpp:45:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(k=j1+1;k<=j2;k++)
^
user.cpp:45:17: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(k=j1+1;k<=j2;k++)
^
user.cpp:57:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(k=j1;k<=j2;k++)
^
user.cpp:61:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(l[k]==0) l[k]=j1-1;
^
user.cpp:61:32: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
if(l[k]==0) l[k]=j1-1;
^
user.cpp:66:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(k=j2;k>=j1;k--)
^
user.cpp:74:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(k=j1;k<=j2;k++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !