QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#372418#6749. TargetZhaoZiLongCompile Error//C++23445b2024-03-31 13:14:132024-03-31 13:14:14

Details

answer.code: In function ‘int main()’:
answer.code:21:21: error: ‘fabs’ was not declared in this scope; did you mean ‘labs’?
   21 |                 if (fabs(op1(a) - b)<=fabs(op2(a) - b))
      |                     ^~~~
      |                     labs
answer.code:30:21: error: ‘fabs’ was not declared in this scope; did you mean ‘labs’?
   30 |                 if (fabs(a - b)<=1e-4)
      |                     ^~~~
      |                     labs