I keep getting the above error:
#include <cs50.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int main (int argc, string argv[])
{
if (argc != 2)
{
printf("Usage: ./caesar key");
}
for (int i = 0, n = strlen(argv[1]); i < n; i++)
{
if (isdigit(argv[1][i]) == 0)
{
printf("Usage: ./caesar key\n");
return 1;
}
else
{
printf("Success\n");
printf("%s\n", argv[1]);
return 0;
}
}
}