Problem duckeatduck
User Shreyas123456789
Submission Time 2026-02-23 16:46:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckeatduck.cpp: In function ‘int main()’:
duckeatduck.cpp:9:18: error: expected ‘)’ before numeric constant
9 | cout << ceil(log 2(N))
| ~ ^~
| )
duckeatduck.cpp:9:23: error: no matching function for call to ‘ceil(<unresolved overloaded function type>)’
9 | cout << ceil(log 2(N))
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from duckeatduck.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:159:1: note: candidate: ‘double ceil(double)’
159 | __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__));
| ^~~~~~~~~~~
In file in