Borderou de evaluare (job #1204043)
Utilizator | Data | 1 iulie 2014 20:20:03 | |
---|---|---|---|
Problema | Tribute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:11: error: ‘sy’ was not declared in this scope
int minn2=sy,minn=sx;;
^
user.cpp:8:15: error: conflicting declaration ‘int a’
int n=0,i,x,y,a,b,dx=0,dy=0,p,m;
^
user.cpp:5:5: error: ‘a’ has a previous declaration as ‘int a [50005]’
int a[50005],b[50005];
^
user.cpp:8:17: error: conflicting declaration ‘int b’
int n=0,i,x,y,a,b,dx=0,dy=0,p,m;
^
user.cpp:5:14: error: ‘b’ has a previous declaration as ‘int b [50005]’
int a[50005],b[50005];
^
user.cpp: In function ‘int main()’:
user.cpp:20:10: error: incompatible types in assignment of ‘int’ to ‘int [50005]’
for(a=-dx,b=0,p=0,m=n;a<=50000;a++,b++)
^
user.cpp:20:16: error: incompatible types in assignment of ‘int’ to ‘int [50005]’
for(a=-dx,b=0,p=0,m=n;a<=50000;a++,b++)
^
user.cpp:20:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(a=-dx,b=0,p=0,m=n;a<=50000;a++,b++)
^
user.cpp:20:37: error: lvalue required as increment operand
for(a=-dx,b=0,p=0,m=n;a<=50000;a++,b++)
^
user.cpp:20:41: error: lvalue required as increment operand
for(a=-dx,b=0,p=0,m=n;a<=50000;a++,b++)
^
user.cpp:22:15: error: ‘minn’ was not declared in this scope
if(sx<minn)
^
user.cpp:26:19: error: invalid types ‘int [50005][int [50005]]’ for array subscript
p+=a[a];
^
user.cpp:27:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(b<50005)
^
user.cpp:28:19: error: invalid types ‘int [50005][int [50005]]’ for array subscript
m-=a[b];
^
user.cpp:33:6: error: incompatible types in assignment of ‘int’ to ‘int [50005]’
b=0;
^
user.cpp:36:10: error: incompatible types in assignment of ‘int’ to ‘int [50005]’
for(a=-dy;a<=50000;a++)
^
user.cpp:36:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !