#include <iostream>
using namespace std;
int main()
{
string tempwebsite, *results;
int testcases, relation;
cin >> testcases;
for (int casenum=1; casenum<=testcases; casenum++)
{
string websites[99]{};
for (int i=0; i<10; i++)
{
cin >> tempwebsite;
cin >> relation;
websites[relation-1]+=tempwebsite+"\n";
}
for (results=&websites[98]; results[0]=="\0"; results--)
NULL;
cout << "Case #" << casenum << ":" << endl << (*results);
}
}
help me