This is part of my code:
On the line with "scanf", I get the error " warning: format ‘%i’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat]" (I'm using a unix-based compiler, if that helps).
I'm reading in data from a file with this data:
Code:
int main(){
char str[100];
char min[100];
char max[100];
int count;
int num = 0;
scanf("%i", count);
On the line with "scanf", I get the error " warning: format ‘%i’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat]" (I'm using a unix-based compiler, if that helps).
I'm reading in data from a file with this data:
Code:
7
jones
smith
aki
ren
stimpy
bart
Simpson
Last edited by a moderator: