このような他の質問を読みましたが、どれも機能していないようです...私のコードは次のとおりです。
int flowRateFormula(int pipeDiameter,double velocity)
{
int integer3;
integer3=PI*(1/4)*(pow(pipeDiameter,2))*velocity;
return integer3;
}
エラーは次のとおりです。
flowRate.c: In function ‘flowRateFormula’:
flowRate.c:38:13: error: invalid type argument of unary ‘*’ (have ‘int’)
何をすべきか?ところでPIは定義されています