From ea096bdec1d05ed023c2420c3ea61251c983978e Mon Sep 17 00:00:00 2001 From: matthias wagner Date: Thu, 13 Jul 2023 21:25:26 +0200 Subject: [PATCH] envoirnment --- thor.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/thor.c b/thor.c index 367e313..272e89f 100644 --- a/thor.c +++ b/thor.c @@ -1,8 +1,19 @@ #include +#include // run using gcc thor.c && ./a.out int main(int argc, char **argv){ - printf("Hello, World!"); - return 0; + if(argc != 2) { + printf("enter one argument for n"); + return 1; + } + unsigned int n = atoi(argv[1]); + printf("claculating number y of rotaionally asymmetric polycubes with n = %u ...\n", n); + unsigned int y = rot_asy_polyc(n); + printf("y = %u\n", y); + return 0; +} +unsigned int rot_asy_polyc(n) { + } \ No newline at end of file