`#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
list<int> list;
int val;
while (cin >> val && val != -1)
{
list.push_back(val);
}
list.reverse();
for (int num : list)
{
cout << num << " ";
}
}`
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)