Task: | Karkit |
Sender: | Sahari Kempo |
Submission time: | 2021-10-06 10:55:34 +0300 |
Language: | C++ (C++17) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:5:11: error: '::main' must return 'int' void main() ^
Code
#include <iostream> #include <string> using namespace std; void main() { int n, a, b, c; cin >> n; cin >> a; cin >> b; if (a < b) c = n / a; else c = n / b; cout << c; }