none appears twice in this code snippet:
int none[5];
And then:
none[i] = number1;
If, for example, you later had:
int foo = none[3];
or
for(int i = 0; i < 5; i++) printf("%d\n", none[i]);
or something like that, we would say that none "used", but since there is code, you have: "none" set but not used ; exactly what the compiler said.
In the pastebin link, I see your problem:
You wrote this:
for(i=0;i<5;i++) { printf("Question [i]: none[i]+ntwo[i]");
You wanted to write this:
for(i=0;i<5;i++) { printf("Question [i]: ", none[i]+ntwo[i]);
None is now used, and your print does something useful ...
source share