Per the pset2 specifications, I am using
string k = argv; int k = atoi(argv);
to turn the input from a string to an int but when I try to compile I get:
caesar.c:16:5: error: redefinition of 'k' with a different type: 'int' vs 'string' (aka 'char *') int k = atoi(argv); caesar.c:15:8: note: previous definition is here string k = argv;
which is crazy because I am trying to redefine the variable. Any ideas on how to fix would be helpful.