QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#430703#3476. 3D Printed StatuesZhangYiDeCompile Error//C++14474b2024-06-04 09:45:232024-06-04 09:45:23

Details

answer.code: In function ‘int main(int, char**)’:
answer.code:24:23: error: ‘log10’ was not declared in this scope
   24 |         cout << ceil((log10(n) / log10(2))) + 1 << endl;
      |                       ^~~~~
answer.code:24:17: error: ‘ceil’ was not declared in this scope
   24 |         cout << ceil((log10(n) / log10(2))) + 1 << endl;
      |                 ^~~~