QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#372397#6749. TargetHuangHanShengCompile Error//C++20548b2024-03-31 12:46:572024-03-31 12:46:57

Details

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