Mã chấm: 15413
Main.c: In function ‘main’: Main.c:6:15: warning: unused variable ‘c’ [-Wunused-variable] int a, b, x, c; ^ Main.c:9:12: error: ‘a’ undeclared (first use in this function) }while ((a <=0 || a>100) && (b <=0 || b>100) && (x <=0 || x>100)) ^ Main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:32: error: ‘b’ undeclared (first use in this function) }while ((a <=0 || a>100) && (b <=0 || b>100) && (x <=0 || x>100)) ^ Main.c:9:52: error: ‘x’ undeclared (first use in this function) }while ((a <=0 || a>100) && (b <=0 || b>100) && (x <=0 || x>100)) ^ Main.c:10:4: error: expected ‘;’ before ‘c’ c = (x*3)-a-b; ^ Main.c:11:27: error: ‘c’ undeclared (first use in this function) printf("Vay c la: %d", c); ^ Main.c:8:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a, &b, &x); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~