Witam,
Chciałbym zapytać co jest nie tak w moim kodzie, że nie chce przejść przez test.
"
include
include
using namespace std;
int main(){
int t;
cin>>t;
for(int i=2;i<=t+1;i++){
int x1,x2,x3,y1,y2,y3;
cin>>x1>>y1;
cin>>x2>>y2;
cin>>x3>>y3;
float ab,bc,ac;
ab=sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)));
ac=sqrt(((x3-x1)*(x3-x1))+((y3-y1)*(y3-y1)));
bc=sqrt(((x3-x2)*(x3-x2))+((y3-y2)*(y3-y2)));
if((ac==ab+bc)||(ac==bc-ab)){
cout<<"TAK"<<endl;
}
else{
cout<<"NIE"<<endl;
}
}
return 0;
}
"