How to input the given numbers in C++?

Actually the number of digits is not known. Please answer an easy and descriptive solution in C++.

8 10 -6 -5 -6 10 -7 8 -5 -10

-4 -10 -5 -9 10 10 4 -9 -7 -6

5 4 -1 -10 -2 -6 -1 -7 8 8

1 -6 -7 2 1 -8 8 -5 -10 6

-2 10 6 10 3 -8 -8 -4 3 4

5 8 9 -10 -3 0 8 -1 3 -4

5 -9 -8 8 -6 -7 2 -10 2 0

-9 0 -3 10 9 -10 -2 2 1 8

8 3 -6 -3 3 -10 6 0 10 -1

3 8 -6 8 5 -5 -7 7 2 0

-5 6 7 3 -10 -10 5 5 -6 -1

-2 3 -3 6 4 -4 3 7 1 -4

6 10 7 -1 0 -9 10 -8 3 -8

4 4 10 5 6 0 4 -4 9 6

6 10 -5 1 -6 -9 4 -4 10 1

10 -3 7 8 5 4 -9 7 7 -6

-5 -7 -4 -5 10 -1 -6 -1 3 -9

9 -7 6 10 -6 5 0 -3 -4 -7

9 9 9 5 2 -3 0 6 -10 -5

8 4 3 8 -9 -10 7 9 -4 10

0 -3 5 -7 0 -7 9 -4 8 -9

10 -3 6 8 -8 2 5 -8 10 0

-4 -3 5 -7 4 0 6 -2 -9 7

-2 10 3 2 4 -8 8 -6 -6 -4

-8 5 -3 -4 -6 5 10 -9 -2 9

-5 1 7 3 -9 7 2 -2 -2 7

-8 -10 -4 0 10 3 9 1 -4 1

10 0 -6 8 4 6 6 -8 2 -3

-10 7 10 -6 -3 6 10 10 -2 -9

-7 2 -1 -6 3 7 0 -1 -9 5

-4 8 -1 7 8 6 -9 6 -4 8

0 -6 -2 10 -7 10 10 -5 -7 -6

-1 -7 6 -8 1 -5 -8 9 -5 1

8 2 3 7 6 3 -8 5 -7 1

3 8 -5 -5 -10 6 -6 -10 -9 8

0 -10 -2 -2 8 7 1 3 -8 1

5 -8 3 2 5 -5 10 6 0 6

-2 -3 -9 2 0 2 7 -2 -9 -1

-2 -2 -7 6 -10 7 9 1 -5 10

-3 -10 1 1 8 2 3 -5 7 -3

3 -8 9 -5 9 6 -8 3 -7 7

8 4 -2 10 9 -10 -5 1 3 2

7 -7 1 -1 -9 -9 -6 7 -4 -5

1 -6 8 -10 -8 3 -9 2 5 0

6 3 -6 9 -4 8 -3 -6 -8 -2

-10 9 5 -7 8 0 -7 6 7 -7

-7 5 -7 -1 -7 -8 0 0 -2 10

1 1 6 -2 -9 -3 -5 -6 -5 -1

5 -7 -7 -3 -3 0 -1 -10 -10 0

3 -1 5 6 3 -10 -7 4 -1 3

Read the input until the end and store it in a vector. Here is the code

[working example][1]

Code -:

#include <iostream>
#include <vector>
using namespace std;

int main() {
	int i; // for current input
	vector<int> num;  // for storing integers
	while(cin >> i) { // while input is not empty read integers
	   num.push_back(i); // add the inputted integer to the vector
	}
	
	for (auto i = num.begin(); i != num.end(); ++i) 
        cout << *i << " "; // print the values one by one
	return 0;
}

I have shared the link of working code. Hope it helps.
[1]: https://ide.geeksforgeeks.org/QbyOkk1zH9