int32_t main(int32_t argc, char *argv[]) { register uint32_t probNum = 0; if(argc != 2) { noerrExit("Invalid cmd arguments. $ cmd problemNumber"); } probNum = getu32_t(argv[1], 0, "probNum"); switch(probNum) { case 1: prob1(); break; case 2: prob2(); break; case 3: prob3(); break; case 4: prob4(); break; case 5: prob5(); break; case 6: prob6(); break; case 7: prob7(); break; case 8: prob8(); break; default: noerrExit("Problem number not found"); break; } exit(EXIT_SUCCESS); }
int main(void){ printf("%d\n", prob3()); return 0; }