CSES - Datatähti 2025 alku - Results
Submission details
Task:Pizzat
Sender:Interaalimato
Submission time:2024-10-28 09:52:26 +0200
Language:C++ (C++17)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:11:13: error: 'floor' was not declared in this scope
   11 |     cout << floor(div) << " " << ceil(div) << "\n";
      |             ^~~~~
input/code.cpp:11:34: error: 'ceil' was not declared in this scope
   11 |     cout << floor(div) << " " << 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 << floor(div) << " " << ceil(div) << "\n";
    return 0;
}