Problem ljubomora
User Pan
Submission Time 2025-12-17 15:22:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int main()’:
ljubomora.cpp:26:33: error: no matching function for call to ‘ceil(int&, int&)’
26 | cont += ceil(a[i],mi);
| ^
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/cstdio:41,
from ljubomora.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:159:1: note: candidate: ‘double ceil(double)’
159 | __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__));
| ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:159:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ljubomora.cpp:2:
/usr/include/c++/9/cmath:177:5: note: candidate: ‘templat