| Task: | Pizzat |
| Sender: | Interaalimato |
| Submission time: | 2024-10-28 10:00:24 +0200 |
| Language: | C++ (C++20) |
| Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()':
input/code.cpp:12:18: error: 'floorf' is not a member of 'std'; did you mean 'floor'?
12 | cout << std::floorf(div) << " " << std::ceilf(div) << "\n";
| ^~~~~~
| floor
input/code.cpp:12:45: error: 'ceilf' is not a member of 'std'; did you mean 'ceil'?
12 | cout << std::floorf(div) << " " << std::ceilf(div) << "\n";
| ^~~~~
| ceilCode
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n, m, k;
cin >> n >> m >> k;
float palat = m * k;
float div = palat / n;
cout << std::floorf(div) << " " << std::ceilf(div) << "\n";
return 0;
}