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

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:9:11: error: 'floor' was not declared in this scope
    9 |   cout << floor(paloja/n) << " " << ceil(paloja/n);
      |           ^~~~~
input/code.cpp:9:37: error: 'ceil' was not declared in this scope
    9 |   cout << floor(paloja/n) << " " << ceil(paloja/n);
      |                                     ^~~~

Code

#include <iostream>
using namespace std;
int main() {
int n, m, k;
cin >> n >> m >> k;
const float paloja = m * k;
cout << floor(paloja/n) << " " << ceil(paloja/n);
return 0;
}