QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#779736#8834. Formal FringHuluoboCompile Error//C++14978b2024-11-24 21:28:572024-11-24 21:28:59

Details

answer.code: In function ‘int main()’:
answer.code:27:22: error: ‘__lg’ was not declared in this scope; did you mean ‘__log’?
   27 |             if ((int)__lg((i + x) / 2) == (int)__lg((i - x) / 2)) continue;
      |                      ^~~~
      |                      __log
answer.code:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~