Main.c: In function ‘main’:
Main.c:8:11: warning: missing terminating " character
printf("Nhap vao b=
^
Main.c:8:11: error: missing terminating " character
printf("Nhap vao b=
^~~~~~~~~~~~
Main.c:9:1: warning: missing terminating " character
");
^
Main.c:9:1: error: missing terminating " character
");
^~~
Main.c:10:18: error: expected ‘)’ before ‘;’ token
scanf("%d",&b);
^
Main.c:10:4: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
scanf("%d",&b);
^~~~~
In file included from /usr/include/stdio.h:862:0,
from Main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: expected ‘const char * restrict’ but argument is of type ‘int’
printf (const char *__restrict __fmt, ...)
^~~~~~
Main.c:33:1: warning: format not a string literal and no format arguments [-Wformat-security]
}
^
Main.c:33:1: error: expected ‘;’ before ‘}’ token
Main.c:5:13: warning: unused variable ‘count’ [-Wunused-variable]
int a,b, count=0;
^~~~~
Main.c:7:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^~~~~~~~~~~~~~