Witam,
Problem jest następujący, na SPOJU http://pl.spoj.com/problems/PP0502B/ wywala błąd wykonania (SIGSEGV) , a u mnie wszytko działa poprawnie
#include <iostream>
#include <vector>
using namespace std;
int main()
{
short int test_amount;
short int value;
vector <int> tab[test_amount];
cin >> test_amount;
for(int i = 0; i < test_amount; i++)
{
cin >> value;
while( 0 < value )
{
int variable = 0;
cin >> variable;
tab[i].push_back(variable);
value--;
}
}
for(int i = 0; i < test_amount; i++)
{
for(int q = tab[i].size(); 1 <= q; q--)
{
cout << tab[i][q-1] << " ";
}
cout << endl;
}
return 0;
}