On line 42 I have int I declared but I have an error message that said I did:
vigenere.c:32:22: error: use of undeclared identifier 'i' int k = argv[i]
What's happening here?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this communityYes, you have it declared on line 42, but the error occurs on line 32, 10 lines earlier. A variable MUST be declared before it can be used.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)