fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("Nhap vao so a: ");
  5.  
  6. scanf("%d", &a);
  7.  
  8.  
  9.  
  10. printf("Nhap vao so b: ");
  11.  
  12. scanf("%d", &b);
  13. return 0;
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:19: error: ‘a’ undeclared (first use in this function)
      scanf("%d", &a);
                   ^
prog.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
prog.c:12:19: error: ‘b’ undeclared (first use in this function)
      scanf("%d", &b);
                   ^
stdout
Standard output is empty