Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(void) {
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;
	int n = 5;

	vector<int> time[a, b, c, d, e];
	vector<int> nextTime(5);
	for (int i = 0; i < n; i++) {
		if(time[i] % 10 == 0) nextTime[i] = time[i];
		else nextTime[i] = time[i] - time[i] % 10 + 10;
		// nextTime[i] = (time[i] + 9) / 10 * 10;
	}
	int bestTime = 1e9;
	for (int i = 0; i < n; i++) {
		int sumTime = 0;
		for (int j = 0; j < n; j++) {
			if (i == j) {
				sumTime += time[j];
			} else {
				sumTime += nextTime[j];
			}
		}
		bestTime = min(bestTime, sumTime);
	}
	cout << bestTime << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ']' before ',' token
    9 |         vector<int> time[a, b, c, d, e];
      |                           ^
      |                           ]
a.cc:9:29: error: conflicting declaration 'std::vector<int> b'
    9 |         vector<int> time[a, b, c, d, e];
      |                             ^
a.cc:5:16: note: previous declaration as 'int b'
    5 |         int a, b, c, d, e;
      |                ^
a.cc:9:32: error: conflicting declaration 'std::vector<int> c'
    9 |         vector<int> time[a, b, c, d, e];
      |                                ^
a.cc:5:19: note: previous declaration as 'int c'
    5 |         int a, b, c, d, e;
      |                   ^
a.cc:9:35: error: conflicting declaration 'std::vector<int> d'
    9 |         vector<int> time[a, b, c, d, e];
      |                                   ^
a.cc:5:22: note: previous declaration as 'int d'
    5 |         int a, b, c, d, e;
      |                      ^
a.cc:9:39: error: expected initializer before ']' token
    9 |         vector<int> time[a, b, c, d, e];
      |                                       ^
a.cc:12:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   12 |                 if(time[i] % 10 == 0) nextTime[i] = time[i];
      |                          ^
a.cc:12:28: error: invalid operands of types 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} and 'int' to binary 'operator%'
   12 |                 if(time[i] % 10 == 0) nextTime[i] = time[i];
      |                    ~~~~~~~ ^ ~~
      |                          |   |
      |                          |   int
      |                          time_t(time_t*) noexcept {aka long int(long int*) noexcept}
a.cc:12:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   12 |                 if(time[i] % 10 == 0) nextTime[i] = time[i];
      |                                                           ^
a.cc:12:59: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   12 |                 if(time[i] % 10 == 0) nextTime[i] = time[i];
      |                                                     ~~~~~~^
      |                                                           |
      |                                                           time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}
a.cc:13:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   13 |                 else nextTime[i] = time[i] - time[i] % 10 + 10;
      |                                          ^
a.cc:13:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   13 |                 else nextTime[i] = time[i] - time[i] % 10 + 10;
      |                                                    ^
a.cc:13:54: error: invalid operands of types 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} and 'int' to binary 'operator%'
   13 |                 else nextTime[i] = time[i] - time[i] % 10 + 10;
      |                                              ~~~~~~~ ^ ~~
      |                                                    |   |
      |                                                    |   int
      |                                                    time_t(time_t*) noexcept {aka long int(long int*) noexcept}
a.cc:21:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |                                 sumTime += time[j];
      |                                                  ^
a.cc:21:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |                                 sumTime += time[j];
      |                                 ~~~~~~~~^~~~~~~~~~
a.cc:21:41: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive]
   21 |                                 sumTime += time[j];
      |                                 ~~~~~~~~^~~~~~~~~~
      |                                         |
      |                                         time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}