Language: C++

#include<iostream>
using namespace std;
	int main() {
		int n,goukei=0,saidai=0,saisyou=0;
		cin >> n;
		int a[10000];
		while(n>0){
		
			cin>>a[n];
			goukei += a[n];
			if (saidai<a[n]) {
			
				saidai = a[n];

			}
			if (saisyou>a[n]){
			
				saisyou = a[n];
			
			}
			n--;
		
		}
		cout << saisyou << saidai << goukei??????endl;
		return 0;

		

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:53: error: expected primary-expression before '?' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                     ^
a.cc:24:54: error: expected primary-expression before '?' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                      ^
a.cc:24:55: error: expected primary-expression before '?' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                       ^
a.cc:24:56: error: expected primary-expression before '?' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                        ^
a.cc:24:57: error: expected primary-expression before '?' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                         ^
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token
a.cc:24:62: error: expected ':' before ';' token
   24 |                 cout << saisyou << saidai << goukei??????endl;
      |                                                              ^
      |                                                              :
a.cc:24:62: error: expected primary-expression before ';' token