Language: C++

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

int multi[100010], single[100010], hp[110];


int main(){
	int N;
	while (cin >> N && N){
		for (int i = 0; i < 100010; i++){
			multi[i] = 1e9; single[i] = 1e9;
		}
????????????????????????multi[0]=0;single[0]=0;
		for (int i = 0; i < N; i++)cin >> hp[i];
		int M;
		cin >> M;
		for (int i = 0; i < M; i++){
			string name;
			int mp;
			string command;
			int dmp;
			cin >> name >> mp >> command >> dmp;
			if (command == "Single"){
				for (int j = 0; j <= 100000; j++){
					int s = min(100000, j + dmp);
					single[s] = min(single[s], single[j] + mp);
				}
			}
			else{
				for (int j = 0; j <= 100000; j++){
					int s = min(100000, j + dmp);
					multi[s] = min(multi[s], multi[j] + mp);
				}
			}
		}
			for (int i = 100000; i >= 0; i--){
				multi[i] = min(multi[i], multi[i + 1]);
				single[i] = min(single[i], single[i + 1]);
			}
			long long ans = 1e9;
			for (int i = 0; i <= 100000; i++){
				long long u = multi[i];
				for (int j = 0; j < N; j++){
					int v = min(0, hp[j] - i);
					u += single[v];
				}
				ans = min(u, ans);
			}
		cout << ans << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      | ^
a.cc:15:2: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |  ^
a.cc:15:3: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |   ^
a.cc:15:4: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |    ^
a.cc:15:5: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |     ^
a.cc:15:6: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |      ^
a.cc:15:7: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |       ^
a.cc:15:8: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |        ^
a.cc:15:9: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |         ^
a.cc:15:10: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |          ^
a.cc:15:11: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |           ^
a.cc:15:12: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |            ^
a.cc:15:13: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |             ^
a.cc:15:14: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |              ^
a.cc:15:15: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |               ^
a.cc:15:16: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                ^
a.cc:15:17: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                 ^
a.cc:15:18: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                  ^
a.cc:15:19: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                   ^
a.cc:15:20: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                    ^
a.cc:15:21: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                     ^
a.cc:15:22: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                      ^
a.cc:15:23: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                       ^
a.cc:15:24: error: expected primary-expression before '?' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                        ^
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token
a.cc:15:35: error: expected ':' before ';' token
   15 | ????????????????????????multi[0]=0;single[0]=0;
      |                                   ^
      |                                   :
a.cc:15:35: error: expected primary-expression before ';' token