CSES - Datatähti 2025 alku - Results
Submission details
Task:Pizzat
Sender:OorigamiK
Submission time:2024-11-05 11:49:50 +0200
Language:C++ (C++20)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:7:27: error: 'floor' is not a member of 'std'
    7 |         std::cout << std::floor(float(m * k) / n) << " " << std::ceil(float(m * k) / n) << std::endl;
      |                           ^~~~~
input/code.cpp:7:66: error: 'ceil' is not a member of 'std'
    7 |         std::cout << std::floor(float(m * k) / n) << " " << std::ceil(float(m * k) / n) << std::endl;
      |                                                                  ^~~~

Code

#include <iostream>
#include <algorithm>
int main()
{
	int n,m,k;
	std::cin >> n >> m >> k;
	std::cout << std::floor(float(m * k) / n) << " " << std::ceil(float(m * k) / n) << std::endl;
}