Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
int main() {
	long double a, e;
	long long int b=0, c=0, d=0;
	cin >> a;
	a = 4 / a;
	for (int i = 1; i < 10000; i++) {
		if (a - 1 /long double(i) >= 0) {
			if (a - 1 / long double(i) == 0) {
				b = i * 2;
				c = i * 4;
				d = c;
				cout << b <<" "<< c <<" "<< d << endl;
				return 0;
			}
			else {
				b = i;
				e =a- 1 / long double(i);
				for (int j = 1; j < 10000; j++) {
					if (e - 1 / long double(j) == 0) {
						c = j * 2;
						d = c;
						cout << b <<" "<< c <<" "<< d << endl;
						return 0;
					}
					else if (e - 1 / long double(j)>0) {
						c = j;
						e -= 1 / long double(j);
						for (int k = 1; k < 10000; k++) {
							if (e - 1 / long double(k) >= 0) {
								d = k;
								cout << b <<" "<< c <<" "<< d << endl;
								return 0;
							}
						}
					}
				}
			}
		}
	}
	cout << b <<" "<< c <<" "<< d << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected primary-expression before 'long'
   13 |                 if (a - 1 /long double(i) >= 0) {
      |                            ^~~~
a.cc:13:28: error: expected ')' before 'long'
   13 |                 if (a - 1 /long double(i) >= 0) {
      |                    ~       ^~~~
      |                            )
a.cc:14:37: error: expected primary-expression before 'long'
   14 |                         if (a - 1 / long double(i) == 0) {
      |                                     ^~~~
a.cc:14:36: error: expected ')' before 'long'
   14 |                         if (a - 1 / long double(i) == 0) {
      |                            ~       ^~~~~
      |                                    )
a.cc:23:43: error: expected primary-expression before 'long'
   23 |                                 e =a- 1 / long double(i);
      |                                           ^~~~
a.cc:25:53: error: expected primary-expression before 'long'
   25 |                                         if (e - 1 / long double(j) == 0) {
      |                                                     ^~~~
a.cc:25:52: error: expected ')' before 'long'
   25 |                                         if (e - 1 / long double(j) == 0) {
      |                                            ~       ^~~~~
      |                                                    )
a.cc:31:58: error: expected primary-expression before 'long'
   31 |                                         else if (e - 1 / long double(j)>0) {
      |                                                          ^~~~
a.cc:31:57: error: expected ')' before 'long'
   31 |                                         else if (e - 1 / long double(j)>0) {
      |                                                 ~       ^~~~~
      |                                                         )
a.cc:33:58: error: expected primary-expression before 'long'
   33 |                                                 e -= 1 / long double(j);
      |                                                          ^~~~
a.cc:35:69: error: expected primary-expression before 'long'
   35 |                                                         if (e - 1 / long double(k) >= 0) {
      |                                                                     ^~~~
a.cc:35:68: error: expected ')' before 'long'
   35 |                                                         if (e - 1 / long double(k) >= 0) {
      |                                                            ~       ^~~~~
      |                                                                    )