| Task: | Pizzat |
| Sender: | Aarni.Lepisto |
| Submission time: | 2024-10-29 09:26:35 +0200 |
| Language: | C++ (C++20) |
| Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main(int, char**)':
input/code.cpp:13:11: error: 'floor' was not declared in this scope
13 | cout<<floor(slices/n)<<" "<<ceil(slices/n);
| ^~~~~
input/code.cpp:13:33: error: 'ceil' was not declared in this scope
13 | cout<<floor(slices/n)<<" "<<ceil(slices/n);
| ^~~~Code
#include<iostream>
using namespace std;
int main(int argc, char* argv[])
{
ios::sync_with_stdio(0);
cin.tie(0);
int n, m, k;
cin>>n>>m>>k;
const float slices = m*k;
cout<<floor(slices/n)<<" "<<ceil(slices/n);
return 0;
}
