#include <stdio.h> int main(void) { int guess=""; int random=""; //printf("Guess a whole number between 1-100: \hi"); //scanf("%hi", &guess): return 0; }
Standard input is empty
prog.c: In function 'main': prog.c:4:11: warning: initialization makes integer from pointer without a cast [-Wint-conversion] int guess=""; ^ prog.c:5:13: warning: initialization makes integer from pointer without a cast [-Wint-conversion] int random=""; ^ prog.c:6:6: error: redefinition of 'random' int random = rand(1) % 101; ^ prog.c:5:6: note: previous definition of 'random' was here int random=""; ^ prog.c:6:15: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration] int random = rand(1) % 101; ^ prog.c:6:6: warning: unused variable 'random' [-Wunused-variable] int random = rand(1) % 101; ^ prog.c:4:5: warning: unused variable 'guess' [-Wunused-variable] int guess=""; ^
Standard output is empty