Task: | Pizzat |
Sender: | Interaalimato |
Submission time: | 2024-10-28 09:53:18 +0200 |
Language: | C++ (C++17) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:11:18: error: 'floor' is not a member of 'std' 11 | cout << std::floor(div) << " " << std::ceil(div) << "\n"; | ^~~~~ input/code.cpp:11:44: error: 'ceil' is not a member of 'std' 11 | cout << std::floor(div) << " " << std::ceil(div) << "\n"; | ^~~~
Code
#include <iostream> using namespace std; int main() { int n, m, k; cin >> n >> m >> k; float palat = m * k; float div = palat / n; cout << std::floor(div) << " " << std::ceil(div) << "\n"; return 0; }