On my computer and some others my code is working good but at spoj it telling me it is wrong.
`#include
using namespace std;
int main() {
int n, g[4];
cin >> n;
char t[200][200];
for (int i=0; i<4; i++) for (int l=0; l<101; l++) t[i][l] = 0;
for(int z=0; z<n; z++) {
cin >> t[z];
}
for(int i=0, f=0; i<n; i++) {
for(int l=0; l<101; l++) {
if(t[i][l]==0) {
g[f] = l;
f++;
break;
}
}
}
for(int i=0; i<n; i++) {
for(int l=0; l<(g[i]/2); l++) {
if(l%2==0) cout << t[i][l];
}
cout << endl;
}
}`