Выбивает ошибку call of nonfunction - C (СИ)
Формулировка задачи:
#include<stdio.h>
#include<conio.h>
#include<math.h>
int vector(int k);
typedef struct Point{
int x;
int y;
}f;
int main(){
clrscr();
int k, l;
f m[100];
scanf("%d", &k);
l=vector(k);
printf(" %.2f", l);
return 0;
}
int vector(int k){
f m[100];
float S=0, s=0;
int i, a, b, c;
for(i=0; i<k; i++){
scanf("%d%d", &m[a].x, &m[a].y);
}
for(a=0; a<k; a++){
for(b=0; b<k; b++){
for(c=0; c<k; c++){
s=0.5*abs((m[b].x-m[a].x)(m[ c ].y-m[a].y)-(m[ c ].x-m[a].x)(m[b].y-m[a].y));
if(s>S) S=s;
}
}
}
return S ;
}Решение задачи: «Выбивает ошибку call of nonfunction»
textual
Листинг программы
s=0.5*abs((m[b].x-m[a].x)(m[c].y-m[a].y)-(m[c].x-m[a].x)(m[b].y-m[a].y));