Borderou de evaluare (job #2304113)
Utilizator | Data | 17 decembrie 2018 16:01:35 | |
---|---|---|---|
Problema | Mosia | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'double triunghi(double, double, double)':
main.cpp:15:20: error: invalid types 'ura [1003][double]' for array subscript
double x1=v[pz1].a,x2=v[pz2].a,x3=v[pz3].a,y1=v[pz1].b,y2=v[pz2].b,y3=v[pz3].b;
^
main.cpp:16:22: error: 'x2' was not declared in this scope
double rez = (x1-x2)*(y1-y3)-(x1-x3)*(y1-y2);
^~
main.cpp:16:30: error: 'y3' was not declared in this scope
double rez = (x1-x2)*(y1-y3)-(x1-x3)*(y1-y2);
^~
main.cpp:16:38: error: 'x3' was not declared in this scope
double rez = (x1-x2)*(y1-y3)-(x1-x3)*(y1-y2);
^~
main.cpp:16:46: error: 'y2' was not declared in this scope
double rez = (x1-x2)*(y1-y3)-(x1-x3)*(y1-y2);
^~
main.cpp: In function 'double add(double, double, double, double)':
main.cpp:21:22: error: invalid types 'ura [1003][double]' for array subscript
double x1=rez[pz1].a,x2=rez[pz2].a,x3=v[pz3].a,y1=rez[pz1].b,y2=rez[pz2].b,y3=v[pz3].b;
^
main.cpp:22:20: error: 'x2' was not declared in this scope
double rezc = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
^~
main.cpp:22:36: error: 'y2' was not declared in this scope
double rezc = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
^~
main.cpp: In function 'int main()':
main.cpp:47:17: error: invalid types 'ura [1003][double]' for array subscript
cin>>v[i].a>>v[i].b>>v[i].poz;
^
main.cpp:47:25: error: invalid types 'ura [1003][double]' for array subscript
cin>>v[i].a>>v[i].b>>v[i].poz;
^
main.cpp:47:33: error: invalid types 'ura [1003][double]' for array subscript
cin>>v[i].a>>v[i].b>>v[i].poz;
^
main.cpp:49:15: error: invalid operands of types 'ura [1003]' and 'double' to binary 'operator+'
sort(v+1,v+n+1,cmp);
~^~
main.cpp:51:11: error: invalid types 'double [1003][double]' for array subscript
st[++k]=1;
^
main.cpp:52:11: error: invalid types 'double [1003][double]' for array subscript
st[++k]=2;
^
main.cpp:55:37: error: invalid types 'double [1003][double]' for array subscript
while(k>1 && triunghi(st[k-1],st[k],i)<0)
^
main.cpp:55:43: error: invalid types 'double [1003][double]' for array subscript
while(k>1 && triunghi(st[k-1],st[k],i)<0)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !