Borderou de evaluare (job #945634)
Utilizator | Data | 2 mai 2013 13:57:53 | |
---|---|---|---|
Problema | Dreptunghiuri3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:60: error: ‘int y1 [1009]’ redeclared as different kind of symbol
int nr,n,m,i,j,k,A[2013],B[2013],val[1009],x1[1009],y1[1009],x2[1009],y2[1009];
^
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:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:25:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d",&y1[i]);
^
user.cpp:25:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d",&y1[i]);
^
user.cpp:33:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
x1[k]=y1[k]=1;
^
user.cpp:33:12: error: assignment of read-only location ‘*(y1 + ((sizetype)k))’
x1[k]=y1[k]=1;
^
user.cpp:33:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:41:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[nr].v=y1[i];
^
user.cpp:41:17: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:74:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else y1[y[i].p]=m;
^
user.cpp:74:20: error: assignment of read-only location ‘*(y1 + ((sizetype)y[i].str::p))’
else y1[y[i].p]=m;
^
user.cpp:74:20: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:80:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a[x1[i]][y1[i]]+=val[i];
^
user.cpp:80:19: error: invalid types ‘long long int [2013][double(double)throw ()]’ for array subscript
a[x1[i]][y1[i]]+=val[i];
^
user.cpp:83:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a[x2[i]][y1[i]]-=val[i];
^
user.cpp:83:19: error: invalid types ‘long long int [2013][double(double)throw ()]’ for array subscript
a[x2[i]][y1[i]]-=val[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !