bar () { for (int i = 0; i < get_a_number (); i++) { struct A *p = get_an_A (); p->foo (4); if (go != 22) abort (); } }
int main (int argc, char *argv[]) { for (int i = 0; i < get_a_number (); i++) { struct A *p = get_an_A (); p->foo (4); if (go != 22) abort (); } bar (); return 0; }
int main (int argc, char *argv[]) { for (int i = 0; i < get_a_number (); i++) { struct A *p = get_an_A (); struct A *r = p->foo (4); if (r->fi != 1111) abort (); if (go != 22) abort (); } return 0; }
int main(int argc, char *argv[]) { int i, j, sum, result, num, linenum, ctail, xtail; int c[1000], x[1000], xpow[1000]; linenum = 0; ctail = 0; xtail = 0; xpow[0] = 1; while(1) { result = get_a_number(&num); if(ctail < 1000 && xtail < 1000) { if(linenum % 2 == 0) c[ctail++] = num; else x[xtail++] = num; } if(result == '\n') { linenum++; if(linenum % 2 == 0) { for(i = 0; i < xtail; i++) { for(j = 1; j < ctail; j++) xpow[j] = x[i] * xpow[j - 1]; for(sum = 0, j = 0; j < ctail; j++) sum += c[j] * xpow[ctail - j - 1]; printf("%d%c", sum, i == xtail - 1 ? '\n' : ' '); } ctail = 0; } else xtail = 0; } else if(result == EOF) break; } return 0; }