#define TEAM 0 /* Your team # here */ #define PROBLEM 0 /* The problem # here */ #include <stdio.h> #include <string.h> FILE *in=0; FILE *out=0; void solve_problem(); int main(int argc, char *argv[]) { char filename[64]; sprintf(filename, "prob%d.dat", PROBLEM); in = fopen(filename, "r"); if (in == 0) { printf("could not open input file %s\n", filename); exit(1); } sprintf(filename,"prob%d.out",PROBLEM); out = fopen(filename,"w"); if (out == 0) { printf("could not open output file %s\n", filename); exit(1); } fprintf(out,"Program %d by team %d\n",PROBLEM,TEAM); solve_problem(); fprintf(out,"End of program %d by team %d\n",PROBLEM,TEAM); close(in); close(out); return 0; } void solve_problem() { /* TODO: solve the problem! */ }