Language: C++

#include <iostream>
using namespace std;
int main()
{
	int c1, c5, c10, c50, c100, c500;
	int a, b, c, d, e, f, y;
	cin >> a >> b >> c >> d >> e >> f;
	c1 = 1;
	c5 = 5;
	c10 = 10;
	c50 = 50;
	c100 = 100;
	c500 = 500;
	y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
	if (y >= 1000)
	{
		cout << "1" << endl;
	}
	else
		cout << "0" << endl;
}

Compiler output:
a.cc:14:45: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
a.cc:14:67: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
a.cc:14:90: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
a.cc:14:109: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
a.cc: In function 'int main()':
a.cc:14:38: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                      ^
a.cc:14:39: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                       ^
a.cc:14:40: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                        ^
a.cc:14:45: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                             ^
a.cc:14:46: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                              ^
a.cc:14:47: error: expected primary-expression before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:47: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                               ^
      |                                               :
a.cc:14:47: error: expected primary-expression before ')' token
a.cc:14:52: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                    ^
a.cc:14:53: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                     ^
a.cc:14:54: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                      ^
a.cc:14:57: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                         ^
a.cc:14:58: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                          ^
a.cc:14:60: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                            ^
a.cc:14:61: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                             ^
a.cc:14:62: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                              ^
a.cc:14:67: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                   ^
a.cc:14:68: error: expected primary-expression before '?' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                    ^
a.cc:14:69: error: expected primary-expression before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expected primary-expression before ')' token
a.cc:14:69: error: expected ':' before ')' token
   14 |         y = (a * c1) + (b * c5) + (c*???c10???) + (???d???*???c50???) + (???e???*???c100???) + (???d * c500???);
      |                                                                     ^
      |                                                                     :
a.cc:14:69: error: expe