148322025-02-04 13:08:52TortelliniJrOszthatóság 17-tel (60 pont)cpp17Compilation error
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int n, m;
    cin >> n;
	if (n % 17 == 0)
	{
		cout << "IGEN" << endl;
	}
	else
	{
		cout << "NEM" << endl;
	}
	while (n > 0)
	{
		m = n % 10;
		n = floor(n / 10);
		n -= (m * 5);
		if (n > 0)
		{
			cout << n << " ";
		}
	}
}
Compilation error
open /var/local/lib/isolate/428/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:19:21: error: 'floor' was not declared in this scope
   19 |                 n = floor(n / 10);
      |                     ^~~~~